Timestamp Converter
Paste a Unix timestamp to see it as a readable date in local time, UTC, and ISO 8601, or pick a date and get its Unix seconds and milliseconds. Seconds and milliseconds are detected automatically.
Seconds (10 digits) and milliseconds (13 digits) are detected automatically. Negative values are allowed.
Date to Unix timestamp
The picker is interpreted in your browser's local timezone, then converted to UTC-based Unix time.
How to use this tool
- Paste a Unix timestamp into the first field. The tool reads 10-digit values as seconds and 13-digit values as milliseconds automatically.
- Read the same instant as local time, UTC, and ISO 8601, then copy any value you need.
- To go the other way, pick a date and time in the second panel to get Unix seconds and milliseconds.
- Click Use current time in either panel to start from now.
Seconds, milliseconds, and the Unix epoch
Unix time counts the seconds since 1 January 1970 at 00:00:00 UTC, not counting leap seconds. JavaScript and many APIs use milliseconds instead, which are 1,000 times larger. This converter detects the unit from the size of the number:
| Input | Detected unit | Instant |
|---|---|---|
1700000000 | Seconds (10 digits) | 2023-11-14T22:13:20Z |
1700000000000 | Milliseconds (13 digits) | 2023-11-14T22:13:20Z |
The rule is based on magnitude: absolute values below 100000000000 are treated as seconds, and larger values as milliseconds. That covers dates from 1970 through the year 5138 in seconds, and keeps ordinary millisecond timestamps unambiguous.
Local time, UTC, and ISO 8601
Local time uses your device's timezone and locale, so it changes when you travel or change system settings. UTC is the same instant everywhere and is the safer choice for logs and server data. ISO 8601 is the machine-friendly format produced by toISOString(), always in UTC with a trailing Z.
Dates before 1970 produce negative timestamps. Dates outside the range supported by your browser's Date object are rejected rather than rounded, and the tool never sends the value anywhere.
Reading a timestamp without a converter
Take 1700000000. Divide by 86,400, the number of seconds in a day: 19,675 days with 80,000 seconds left over. Starting from 1 January 1970, 19,675 days lands on 14 November 2023. The remainder is 22 hours, 13 minutes, and 20 seconds, so the instant is 2023-11-14T22:13:20Z.
That is the whole method. The converter does the same arithmetic and also applies your local offset, which is the part a hand calculation usually gets wrong.
Which unit is this number in
| Digits | Unit | Example | Where it shows up |
|---|---|---|---|
| 10 | Seconds | 1700000000 | Unix time, JWT claims, most APIs |
| 13 | Milliseconds | 1700000000000 | JavaScript Date.now(), browser APIs |
| 16 | Microseconds | 1700000000000000 | Some databases and tracing systems |
| 19 | Nanoseconds | 1700000000000000000 | Kernel timestamps, high-resolution logs |
This converter splits at 100,000,000,000. Values below that are read as seconds and larger values as milliseconds, which covers ordinary dates from 1970 onward without ambiguity. Microsecond and nanosecond values are outside that rule, so divide them by 1,000 or 1,000,000 before pasting.
UTC, local time, and daylight saving
A timestamp names an instant and nothing else. The clock reading depends on where it is rendered. Two people in different countries can see different dates for the same number, and both are correct.
Daylight saving adds a second layer. A local timestamp taken during a spring-forward hour may map to a time that does not exist, and an autumn hour repeats. Keep stored values in UTC and convert only for display, which is what the UTC and ISO 8601 outputs are for.
Negative and very large values
Dates before 1970 produce negative timestamps. The converter handles them as long as the date falls inside the range supported by the browser's Date object. Values outside that range are rejected instead of silently rounded, so an error message means the number itself is out of range rather than misread. For calendar work rather than instant conversion, the Date Calculator shifts a date, and the Age Calculator measures the gap between a past date and today in years and months.
Frequently asked questions
It uses the size of the number. Absolute values below 100,000,000,000 are treated as seconds and larger values as milliseconds, which matches the usual 10-digit and 13-digit Unix timestamps.
Unix time is the number of seconds since 1 January 1970 at 00:00:00 UTC, excluding leap seconds. Milliseconds are the same value multiplied by 1,000.
Local time applies your device timezone offset and locale, while UTC has no offset. Both describe the same instant, so the clock reading changes but the moment does not.
Yes. Timestamps before the Unix epoch are negative, and the converter handles them as long as the resulting date is within the range supported by your browser.
The date picker is read in your browser local timezone and then converted to UTC-based Unix time. If you need a specific timezone, convert from a known ISO 8601 value instead.