Convert Unix Timestamps to Dates and Back
See the current Unix time ticking live, paste any epoch value to read it as a date in any time zone, or pick a date and time to get its timestamp in seconds, milliseconds, microseconds and nanoseconds.
How to convert a Unix timestamp
- Pick the time zone you want dates shown in (your own zone is listed first).
- Paste a timestamp under "Timestamp → date"; the unit is detected from its length, or choose it yourself.
- Read the result as UTC, ISO 8601, RFC 2822, local time and relative time.
- To go the other way, enter a date and time under "Date → timestamp" and copy the seconds or milliseconds value.
How unit detection works
Current timestamps have 10 digits in seconds, 13 in milliseconds, 16 in microseconds and 19 in nanoseconds. The converter reads up to 11 digits as seconds, up to 14 as milliseconds, up to 17 as microseconds and anything longer as nanoseconds. For dates before 1973 or very far in the future, choose the unit manually.
Benefits
- Handles all four common epoch units, keeping nanosecond precision with BigInt arithmetic.
- Converts in any IANA time zone with correct daylight-saving offsets.
- Shows several standard formats side by side for logs, APIs and email headers.
Limitations
- Dates are shown to millisecond precision; finer microsecond and nanosecond digits are truncated in the date output.
- Leap seconds are not represented, as in Unix time itself.
- Older browsers without Intl.supportedValuesOf show a shorter list of common time zones.
Privacy and security
All conversions use your browser's Date and Intl APIs. Nothing you enter is transmitted.
Read our privacy policy for details about the site as a whole.
Frequently asked questions
What is a Unix timestamp?
It is the number of seconds elapsed since 1 January 1970 00:00:00 UTC, not counting leap seconds. Many systems use milliseconds instead, which gives a 13-digit number.
What is the year 2038 problem?
Systems storing seconds in a signed 32-bit integer overflow on 19 January 2038 at 03:14:07 UTC. JavaScript uses 64-bit numbers, so this converter is not affected.
Do timestamps depend on the time zone?
No. A timestamp identifies one instant worldwide; only its display as a calendar date and clock time depends on the zone.