
Unix timestamp converter with time zones
Epoch time to a readable date and back, in any IANA time zone, with automatic detection of seconds, milliseconds, microseconds and nanoseconds.
Runs in your browser. Pasted data never leaves it.
Timestamp to date
Date to timestamp
Compare time zones
How to use it
- Type a Unix timestamp on the left, or a date on the right. Both directions update at once.
- Choose a time zone for the date side (it starts with yours).
- Read the result in ISO 8601, RFC 2822, your local time, UTC, and as a relative time such as “3 days ago”.
- Use the comparison table to see the same instant in several cities.
Questions
How do I tell seconds from milliseconds?
By size. A timestamp now is 10 digits in seconds (1.7 billion), 13 in milliseconds, 16 in microseconds and 19 in nanoseconds. The page picks the unit from the digit count and shows which one it chose. JavaScript's Date.now() is milliseconds; Unix date +%s is seconds.
What is the Unix epoch?
Unix time counts the seconds since 00:00:00 UTC on 1 January 1970, ignoring leap seconds. It is the same number everywhere on Earth; only the way it is shown depends on the time zone.
What happens at a daylight-saving change?
When clocks go back, one hour of wall-clock times happens twice: this page picks the first (earlier) one. When clocks go forward, an hour of wall-clock times doesn't exist: the page moves it forward by the gap, as JavaScript and most calendar programs do.
What is the Year 2038 problem?
A signed 32-bit seconds counter overflows on 19 January 2038 at 03:14:07 UTC (timestamp 2147483647). Systems that still store time in 32 bits will wrap to 1901. Use 64-bit timestamps. Try 2147483648 above to see the date this page shows.
Which time zone names does it know?
All IANA zones your browser supports (such as America/New_York and Asia/Kolkata), including their daylight-saving rules, from the data built into your browser. Abbreviations such as EST or IST are ambiguous, so use the full names.
Is what I paste or test sent anywhere?
No. This page works entirely inside your browser, and pasted data never leaves your device. It makes no network requests while you use it, and the page also tells your browser to block them (a Content-Security-Policy with connect-src 'none'), so even a bug could not send your data out. To check it yourself, open your browser's developer tools, go to the Network tab, and use the tool: nothing will appear. There is no account, no analytics and no logging.
