Unix timestamp converter
Paste a timestamp, a date or plain words like “tomorrow 9am”. See it as a readable date in your time zone, in UTC, and in four cities, with a live clock of the current Unix time.
We couldn’t read that. Try a number like 1700000000, a date like 2024-01-01 10:00, or words like “next friday 5pm”.
The same moment around the world
Every format
Click a value to copy it.
Code: JavaScript, Postgres and Python
More free tools
How it works
- Paste a Unix timestamp, like
1700000000. Seconds, milliseconds, microseconds and nanoseconds are told apart by how many digits they have. You can also paste a date like2024-01-01T10:00:00Z, or type words liketomorrow 9amor3 hours ago. - The big card shows that moment as a date in your time zone, in UTC, and how far it is from now. Click the Unix seconds, milliseconds or ISO value to copy it.
- Below it, see the same moment in four cities. Pick any city from its menu. Open “Code” for ready-to-paste JavaScript, Postgres and Python.
Questions
What is a Unix timestamp?
The number of seconds since 1 January 1970 at midnight UTC, the “Unix epoch”. It is the same everywhere in the world at the same moment, which is why databases and APIs use it. 1700000000 is 14 November 2023, 22:13:20 UTC.
Is my timestamp in seconds or milliseconds?
Count the digits. Today in seconds is 10 digits (like 1793560000); in milliseconds it is 13. JavaScript’s Date.now() gives milliseconds; Postgres, Python and most APIs use seconds. This tool works it out for you and says which one it read.
Why is my date off by a few hours?
Almost always a time zone mix-up. A timestamp has no time zone, but the moment you show it as a date, your code picks one: the browser’s, the server’s (often UTC), or the database’s. Compare the “your time zone” and “UTC” lines here to see which one you are getting.
Why does my date say 1970?
You passed seconds where milliseconds were expected. new Date(1700000000) in JavaScript is 20 January 1970, because it reads the number as milliseconds. Multiply by 1000: new Date(1700000000 * 1000).
What does “Z” at the end of a date mean?
It means UTC (“Zulu time”). 2024-01-01T10:00:00Z is 10am in London in winter, and 3:30pm in India. A date written with +05:30 instead carries its own offset.
Is anything uploaded?
No. Everything runs in your browser, using your browser’s own time zone data.