Unix Timestamp Converter
Turn a Unix timestamp into a readable date and a date back into a timestamp, in seconds or milliseconds. Free, and it runs entirely in your browser.
Timestamp to date
- Local time (UTC+00:00)
- 2023-11-14 22:13:20
- UTC
- 2023-11-14 22:13:20
- ISO 8601
- 2023-11-14T22:13:20.000Z
- Relative
- Checking the time…
Date to timestamp
- Seconds
- 1791720000
- Milliseconds
- 1791720000000
Convert a list
What is a Unix timestamp converter?
A Unix timestamp is a plain number that stands for a moment in time. It counts the seconds that have passed since January 1, 1970 at 00:00 UTC, a starting point often called the Unix epoch. So 0 is that exact moment, 86400 is one day later, and 1700000000 is a day in November 2023. Moments before 1970 get negative numbers.
Computers like this format because a single number is easy to store, compare and sort, and it means the same moment everywhere in the world. People find it hard to read. When you see 1700000000 in a log file, a database row or an API response, you cannot tell at a glance whether it is last week or ten years ago. This converter does the translation for you, in both directions.
Many systems, JavaScript among them, count milliseconds instead of seconds. Those timestamps are a thousand times bigger, and for present day dates they have 13 digits instead of 10. By default the tool guesses the unit from the length: 13 digits or more is read as milliseconds, anything shorter as seconds. You can also pick the unit yourself if the guess is wrong.
The page shows each moment in your own local time, with the offset from UTC next to it, as well as in UTC and in the ISO 8601 format that programs exchange. It also says how long ago or how far ahead that moment is. A third section converts a whole list at once, one value per line.
Everything runs in your browser. The numbers and dates you enter are not sent anywhere and are gone when you close the page.
How to use the Unix timestamp converter
- In the first section, type or paste a timestamp. A sample is already there, and the now button fills in the current moment.
- Leave the unit on automatic, or choose seconds or milliseconds yourself.
- Read Local time, UTC, ISO 8601 and Relative, such as “3 years ago”.
- To go the other way, use the second section. Pick a date and a time, and the page shows the matching timestamp in seconds and in milliseconds, each with a copy button.
- For many values, paste them into the list section, one per line, choose the direction and copy the converted list. Blank lines stay blank, and a line the tool cannot read shows a question mark.
FAQ
How do I know if my timestamp is in seconds or milliseconds?
Count the digits. A present day timestamp in seconds has 10 digits, and one in milliseconds has 13. If the date you get looks wildly wrong, such as a year far in the future or a day in January 1970, switch the unit and try again.
Which time zone does a Unix timestamp use?
None. The number always counts from midnight UTC on January 1, 1970, so it is the same everywhere. Only the readable date changes with the time zone. In Vietnam, which is UTC+7, the timestamp 0 shows as 07:00 on January 1, 1970.
What is the year 2038 problem?
Older systems store the timestamp as a signed 32-bit number. The largest value that fits is 2147483647, which is 03:14:07 UTC on January 19, 2038. One second later such systems overflow and jump back to 1901. Modern systems use 64-bit numbers and do not have this limit.
Do Unix timestamps count leap seconds?
No. Unix time treats every day as exactly 86400 seconds and ignores leap seconds. That keeps the maths simple, and for everyday use the difference does not matter.
Can I convert dates before 1970?
Yes. Dates before the epoch give negative timestamps, and you can type negative numbers to read them back.
Is my data stored or sent anywhere?
No. The conversion happens inside the page on your own device. Nothing is uploaded and nothing is saved after you close the tab.