Timestamp Converter
Convert a Unix timestamp to a date in any time zone, or a date to a Unix timestamp.
RFC 3339seconds to nanoseconds · IANA time zones · years 1 to 9999
Timestamp to date
| UTC, ISO 8601 | ||
|---|---|---|
| , ISO 8601 | ||
| Readable | ||
| Relative |
Date to timestamp
| Seconds | ||
|---|---|---|
| Milliseconds | ||
| UTC, ISO 8601 |
Runs in your browser. Nothing you enter is sent anywhere. How to check
1.How to use
- Check the time zone. It starts as your device's zone and applies to both panels.
- To read a timestamp, paste it under Timestamp to date. The unit is detected from the number of digits and shown next to the input.
- To get a timestamp, type a date under Date to timestamp, or choose one with the picker.
- Copy any result with the Copy button on its row.
The current Unix time is shown at the top and updates every second. Pause stops it so you can copy a fixed value.
2.Examples
Seconds and milliseconds of the same moment
1700000000 (10 digits, seconds) and 1700000000000 (13 digits, milliseconds) are the same moment: 2023-11-14T22:13:20.000Z. In the Asia/Ho_Chi_Minh time zone that is 2023-11-15T05:13:20.000+07:00, Wednesday, 15 November 2023, 05:13:20.
A date in another time zone
2023-11-15T05:13:20+07:00 gives 1700000000 whatever zone is selected, because the date carries its offset. 2023-11-15T05:13:20 without an offset is read in the selected zone: in Europe/Berlin (UTC+1) it gives1700021600.
An RFC 2822 date from an email header
Wed, 15 Nov 2023 05:13:20 +0700 also gives 1700000000.
3.Options explained
Automatic unit detection
The unit comes from the number of digits before the decimal point, ignoring a minus sign: 1 to 11 digits are seconds, 12 to 14 milliseconds, 15 to 17 microseconds, and 18 or more nanoseconds. A value near a boundary can be read the wrong way. For example100000000000 (12 digits) is read as milliseconds, 3 March 1973. If that is not what you meant, choose the unit yourself in the Unit list.
A decimal value keeps its fraction: 1700000000.5 seconds is2023-11-14T22:13:20.500Z. Nanosecond values keep all their digits.
Time zones and daylight saving
Time zones use the IANA names known to your browser, such as Europe/Berlin. The offset, including daylight saving time, is the one that applied on that date. Dates are written in ISO 8601 form as profiled byRFC 3339 §5.6.
When clocks move forward, a local time is skipped: 02:30 on 31 March 2024 does not exist in Europe/Berlin, and the tool says so. When clocks move back, a local time happens twice: 02:30 on 27 October 2024 in Europe/Berlin is shown as its first occurrence (UTC+2,1729989000), with a note. Add an offset to the date to choose the other one.
4.Limits
- Years 1 to 9999, in UTC. Earlier and later dates are reported as out of range.
- Leap seconds are not represented, as in Unix time: every day has 86,400 seconds, and a time such as 23:59:60 is rejected.
- Dates before standard time zones existed use the local mean time recorded for the zone, such as UTC+0:53:28 for Europe/Berlin before 1893.
- Precision is one nanosecond. Digits beyond that are dropped.
- The relative time ("3 years ago") is computed when the result appears.
5.FAQ
What is Unix time?
The number of seconds since 1 January 1970 at 00:00:00 UTC, not counting leap seconds. Dates before 1970 are negative numbers. It is the same everywhere on Earth; only its display depends on the time zone.
Is my timestamp in seconds or milliseconds?
Count the digits. A current date has 10 digits in seconds (Unix, most APIs, JWT claims) and 13 in milliseconds (JavaScript Date.now(), Java). The tool shows which unit it used.
What is the year 2038 problem?
Systems that store Unix time as a signed 32-bit number can count only up to2147483647, which is 2038-01-19T03:14:07Z. One second later the number overflows. Systems that use 64-bit numbers are not affected.
Why does the result differ from my server?
Usually because of the time zone. The timestamp is the same, but your server may show it in UTC or in its own zone. Compare the UTC row, or select the server's zone here.
Is my data uploaded?
No. Conversions run in your browser. The privacy pageshows how to confirm this in your browser's Network tab.