How to use the Timestamp converter tool
- Under Input format, choose Unix seconds, Unix milliseconds or ISO 8601 including time zone.
- Type the value into Timestamp or date-time, for example 1704067200 or 2024-01-01T09:00:00+09:00.
- Select Convert. The Example button loads 1704067200 as Unix seconds.
- Read the UTC, Unix seconds and Unix milliseconds lines in the Result box, and select Copy if you need them elsewhere.
What a Unix timestamp is
Unix time counts the seconds elapsed since 1970-01-01T00:00:00Z, a moment known as the epoch. It is a single number with no time zone, which makes it easy to store, sort and subtract. POSIX defines every day as exactly 86,400 seconds, so leap seconds are not counted.
Systems disagree on the unit. Unix tools, PHP, Python's time.time() and JWT claims such as exp use seconds. JavaScript's Date.now(), Java's System.currentTimeMillis() and many logging pipelines use milliseconds. A present-day value has 10 digits in seconds and 13 in milliseconds, which is a quick way to tell them apart.
Worked example: one instant, three inputs
Midnight UTC on January 1, 2024 can be entered three ways, and each returns the same three lines. In the ISO form, 09:00 at offset +09:00 is nine hours ahead of UTC, so the offset is subtracted to reach 00:00Z.
Unix seconds 1704067200
Unix milliseconds 1704067200000
ISO 8601 including time zone 2024-01-01T09:00:00+09:00
UTC: 2024-01-01T00:00:00.000Z
Unix seconds: 1704067200
Unix milliseconds: 1704067200000Input rules for the Unix timestamp converter
The tool does not detect the unit for you; it trusts the Input format you choose. Parsing and arithmetic use the browser's built-in Date object, which works in whole milliseconds. The UTC line is always ISO 8601 with millisecond precision and a trailing Z.
- Unix seconds: any finite number, including negatives for dates before 1970 and fractions such as 1700000000.5.
- Unix milliseconds: any finite number. A fractional millisecond is dropped.
- ISO 8601 including time zone: the value must end in Z or in an offset written as +hh:mm or -hh:mm. The colon is required, so +0900 is rejected.
- A date-time without an offset, such as 2024-01-01T00:00:00, stops with Include a time zone offset or Z.
- The supported range is 100,000,000 days either side of the epoch, the limit of the JavaScript Date object.
Common mistakes when converting timestamps
The classic error is a unit mix-up. Read 1704067200000 as seconds and you land in the year 55969. Read 1704067200 as milliseconds and you get 1970-01-20T17:21:07.200Z. A date in January 1970, or tens of thousands of years ahead, almost always means the wrong unit.
The second is a missing zone. A string such as 2024-03-10 14:30 means different instants in New York and Tokyo, so it cannot become a Unix time without an offset. Also watch 32-bit storage: the largest signed 32-bit value, 2147483647, is 2038-01-19T03:14:07Z, and one second later it overflows. This is the Year 2038 problem.
In ISO mode the browser decides what counts as a valid date. An impossible day such as February 30 may roll over into March instead of raising an error.
Frequently asked questions
How do I know if a timestamp is in seconds or milliseconds?
Count the digits. For dates between September 2001 and November 2286, seconds have 10 digits and milliseconds have 13. If a conversion lands in January 1970 or far in the future, switch the Input format and convert again.
Does the converter show my local time?
No. The date line is always UTC in ISO 8601 form, ending in Z. To get local time, apply your zone's offset to that value.
Can I convert dates before 1970?
Yes. Negative timestamps count backward from the epoch, so -1 in Unix seconds is 1969-12-31T23:59:59.000Z. ISO dates before 1970 work too and return negative seconds and milliseconds.
Why is an ISO date without Z rejected?
Without Z or an offset the string names a wall-clock time, not an instant, and software would have to assume a zone. This tool refuses to assume and asks you to add Z for UTC or an offset such as -05:00.
Does it accept fractional seconds?
Yes. 1700000000.5 in Unix seconds converts to 2023-11-14T22:13:20.500Z and 1700000000500 milliseconds. Precision stops at one millisecond, so divide microsecond or nanosecond timestamps down to milliseconds or seconds before you enter them.