Unix Timestamp Converter
Turn a Unix timestamp into a date, or a date and time zone into a timestamp. Units and daylight saving are never guessed.
– milliseconds
Results are shown in this zone. A date and time without an offset is read in it.
Timestamp to date
Seconds, milliseconds, microseconds or nanoseconds. Auto reads the unit from the number of digits and tells you what it chose.
Same instant in other time zones
| Time zone | Date and time | Offset | Remove |
|---|
Date to timestamp
ISO 8601 (2023-11-14T22:13:20+05:30, or without an offset to use the time zone above) or RFC 2822 (Tue, 14 Nov 2023 22:13:20 +0000). No natural-language dates.
Batch conversion
A line that is only a number is converted. In any other line, standalone numbers of 10, 13, 16 or 19 digits are converted. Up to 200 values; the time zone above is used.
How to Use the Unix Timestamp Converter
- Paste a timestamp into Timestamp to date. The unit is read from the number of digits and shown, and you can override it.
- Choose the time zone you want to read the result in. The same instant is also shown in other zones below the result.
- To go the other way, enter a date and time in Date to timestamp. If it has no offset, it is read in the selected time zone.
- For a log or a list, paste it into Batch conversion.
Seconds, Milliseconds and How the Unit Is Read
A Unix timestamp counts time since 1 January 1970, 00:00:00
UTC, called the Unix epoch. Systems store it in different
units, so the same moment can be written as
1700000000 (seconds), 1700000000000
(milliseconds), 1700000000000000 (microseconds)
or 1700000000000000000 (nanoseconds).
With Auto, the unit comes from the number of digits, never from guessing:
- 1 to 10 digits: seconds
- 13 digits: milliseconds
- 16 digits: microseconds
- 19 digits: nanoseconds
- 11, 12, 14, 15, 17 and 18 digits could be either of two units. If only one reading is a date between the years 1 and 9999 it is used, and the page says so. If both are, you are shown both and asked to choose.
Numbers are handled exactly, with no rounding, so a 19-digit nanosecond value keeps every digit. A value with more precision than a nanosecond is refused rather than rounded.
Time Zones and Daylight Saving
A timestamp is one instant; a date and time on a wall clock
only means something in a time zone. Zones are IANA names
such as Asia/Kolkata or
America/New_York, and their rules come from
your browser.
Daylight saving can make a local time not exist
(when clocks jump forward, such as 02:30 on the spring day
in New York) or happen twice (when they go
back). This tool says so instead of choosing for you: a
skipped time gets no result and is explained, and a
repeated time shows both instants, labelled earlier and
later. Including an offset in the text, such as
-05:00, fixes the instant and avoids the
question.
Range, Leap Seconds and the Year 2038
Dates from the year 1 to the year 9999 are supported, including times before 1970, which are negative timestamps. Unix time counts every day as exactly 86,400 seconds, so leap seconds are not separate instants and are not modelled here.
The "year 2038 problem" affects software that stores Unix time in a signed 32-bit integer, which runs out at 03:14:07 UTC on 19 January 2038 (2,147,483,647 seconds). It is not a limit of timestamps in general: browsers and this tool use 64-bit values and carry on well past 2038.
Common Uses
- Reading an epoch from a log line, a database row or a webhook.
- Checking when a token or a cache entry expires.
- Telling seconds from milliseconds in an API field.
- Finding out what a local time is in another zone.
Timestamps often sit inside a JSON payload. To read the payload first, use the JSON Formatter & Validator.
Unix Timestamp Converter FAQ
Is my data sent anywhere?
No. Everything runs in your browser. Nothing you enter or paste is uploaded or stored; reloading clears it.
Why does it ask me to choose a unit?
Some lengths fit two units, for example a 12-digit number could be seconds or milliseconds. Guessing would give a wrong date without warning, so both readings are shown and you pick.
Why does the live clock show milliseconds that do not change every instant?
The display updates once a second so it stays calm and light. Copy takes the exact value at the moment you press it.
Can it do natural-language dates like "next Friday"?
No. Only strict ISO 8601 and RFC 2822 are read, so the result is never a guess.
Does it include leap seconds?
No. Unix time ignores them, and so does this tool.