Unix Timestamp Converter
Convert between Unix timestamps and human-readable dates.
Conversions run inside your own browser using the time zone data it already ships with, so no timestamp or date you enter is sent to a server; only your unit and time zone preferences are saved on this device.
Log files, APIs and databases store time as a single number counted from 1 January 1970, and that number tells you nothing until it is converted. Paste one here and it becomes an ISO 8601 string in UTC, a full date and time in whichever zone you pick, the day of the week, and a relative phrase such as three days ago. The conversion also runs the other way: enter a date and you get the timestamp back in both seconds and milliseconds.
More about Unix Timestamp Converter
Seconds or milliseconds is worked out for you. A value below one hundred billion is read as seconds, because one hundred billion seconds lands in the year 5138 while one hundred billion milliseconds lands in 1973, so for any timestamp a person would realistically paste the magnitude settles the question. If you would rather be explicit, the unit can be pinned to seconds or milliseconds, and that choice is remembered.
The time zone list is read from your own browser, so it holds every zone your browser knows about and starts on the one you are currently in. A live clock at the top of the page shows the present moment in the same formats and can be paused whenever you need to read it steadily.
- Seconds and milliseconds are detected automatically, or the unit can be pinned by hand.
- Output includes ISO 8601 in UTC, always ending in Z.
- The same instant is shown in a time zone you choose, with its UTC offset and the day of the week.
- Relative time is shown too, such as three days ago or in two hours.
- The time zone list comes from your browser, so it covers every zone the browser supports.
- Dates convert back into timestamps, from the date picker or from a pasted ISO string.
- A live clock shows the current time in seconds, milliseconds, UTC and your zone, and can be paused.
- Every value has its own copy button.
How to use it
- 1Paste a Unix timestamp into the timestamp field, or press Use current time to start from now.
- 2Leave the unit on automatic detection, or set it to seconds or milliseconds yourself.
- 3Choose the time zone you want the date shown in; it starts on the zone your browser reports.
- 4Read the converted values: ISO 8601 in UTC, the date and time in your zone, the day of the week and the relative time.
- 5Switch to the Date to timestamp tab to convert in the other direction, then copy whichever value you need.
Questions
Are timestamps in seconds or milliseconds?
Unix timestamps are conventionally counted in seconds, but JavaScript and many APIs use milliseconds, so this tool infers which one you pasted from the size of the number. You can override that and pin the unit yourself at any time.
How does the automatic detection work?
A value below one hundred billion is treated as seconds and anything larger as milliseconds. That threshold is safe in practice, because one hundred billion seconds is the year 5138 and one hundred billion milliseconds is 1973.
Which time zones can I convert to?
Every zone your browser knows about, read from the browser list when the page loads, which is why the exact set can differ slightly between browsers. It starts on your current zone, and your selection is remembered.
Can I convert a date back into a timestamp?
Yes, use the Date to timestamp tab, which accepts the date picker, an ISO 8601 string, and the year-month-day form with a space before the time that spreadsheets produce. The answer is given in both seconds and milliseconds.
Why was my timestamp rejected?
The input has to be a number, so letters and stray symbols are refused, though spaces, commas and underscores are stripped out before parsing. Very large values are refused as well, because they fall outside the range of dates JavaScript can represent.