Unix timestamp converter

Convert Unix seconds or milliseconds to a date, or a date to a timestamp.

Runs in your browser. Your input is not uploaded.

Now: … seconds · … ms

What it does

A Unix timestamp counts seconds since 1970-01-01 00:00:00 UTC. JavaScript and many APIs use milliseconds; some databases and tracing systems use microseconds or nanoseconds. The converter guesses the unit from the number of digits, and you can override it.

Dates go the other way: ISO 8601, RFC 2822 and most formats the browser understands are accepted.

How to use it

  1. Paste a timestamp or a date, or click Now.
  2. Check the detected unit.
  3. Copy the format you need: seconds, milliseconds, ISO 8601, HTTP date or local time.

Example

Input
1700000000
Output
2023-11-14T22:13:20.000Z

Things to watch for

  • A date without a time zone, such as 2026-11-12 09:30, is read as your local time. Add Z or an offset to be explicit.
  • Signed 32-bit seconds run out on 2038-01-19 at 03:14:07 UTC.
  • Unix time ignores leap seconds; each day is exactly 86,400 seconds.

Guides

Questions

Is the timestamp in seconds or milliseconds?
Ten digits is seconds for current dates; thirteen is milliseconds. The tool picks automatically and shows which.
How do I get the current timestamp?
Click Now. In code: Math.floor(Date.now() / 1000) in JavaScript, date +%s in a shell.
Does a Unix timestamp have a time zone?
No. It is always UTC. Time zones only apply when it is displayed.
Can I see the time in another zone?
Yes. Choose a time zone and the local line is shown for it.