Seconds since 1970-01-01 UTC
Convert a Unix timestamp
Unix time counts seconds from the start of 1970 in UTC. JavaScript often counts milliseconds instead. Mixing the two shifts the date by about thirty years, or by a factor of a thousand.
Auto mode treats a number under 100 billion as seconds, and a longer one as milliseconds. You can force either unit. The UTC line is the ISO instant, with a Z. The local line uses this device's time zone. A date picker reads a local wall time and converts it to seconds and milliseconds. Leap seconds are not in Unix time. 32-bit seconds overflow in 2038 on systems that still store the count in a signed 32-bit integer. This page uses a wider number.
The conversion uses the clock and time zone on this device. The number is not sent away.
This tool runs in your browser. Turn on JavaScript to use it.
1,700,000,000 seconds
That count is an instant, not a local midnight. The local column will differ from UTC by your offset.
- Seconds
- 1700000000
- UTC
- 2023-11-14T22:13:20.000Z
- Milliseconds
- 1700000000000
How to use it
- 1Paste a count, or press Now to fill the current instant.
- 2Leave the unit on Auto unless you know the source used milliseconds.
- 3Use the date field when you have a wall time and want the count.
Good to know
- A 10-digit value is almost always seconds. A 13-digit value is almost always milliseconds.
- The date field has no time zone label. It is interpreted as local.
- Negative counts are instants before 1970.
Questions
Why is the local time not the UTC time?
UTC is the instant. Local time adds this device's offset, including daylight saving when it applies.
Does Auto ever guess wrong?
A seconds value far past the year 5138 would look like milliseconds. Everyday timestamps are not in that range.
Is this a cron parser?
No. It converts one instant. It does not explain a schedule.
Related tools
- Explain a cron expression
Cron is five fields. This page tells you what they select and computes the next five matches in this device's local time.
- Format and check JSON
JSON is a data format with strict commas, quotes, and no comments. This page parses what you paste and prints it again with an indent, or on one line.
- Generate a ULID
A ULID sorts by creation time and still has a random tail, so two ids made in the same millisecond are not the same. It is an identifier, not a secret.