About Unix Timestamp Converter
A log line says 1700000000, a database says 1700000000000, and a tracing tool says something three digits longer again. They are all the same moment, and using the wrong unit lands you tens of thousands of years ahead or in January 1970. Paste the number here and it works out the unit from the number of digits, then shows the date in your time zone, in UTC and in ISO 8601.
It goes the other way as well. Pick a date and time, say which time zone it is in, and you get the seconds and milliseconds to paste into a query or test. The page opens on the current moment, so it also serves as a quick answer to what the timestamp is right now.
How it works
A Unix timestamp counts time since 00:00:00 UTC on 1 January 1970. The auto-detect rule goes by digit count: up to 11 digits is seconds, up to 14 is milliseconds, up to 17 is microseconds, and longer is nanoseconds. Those cut-offs work because 11 digits of seconds reaches the year 5138, and 12 digits of milliseconds begins in 1973. A note tells you what it decided, and you can override it with Read as.
The value becomes a JavaScript date, which holds milliseconds, so finer digits are not kept. Your local time and time zone come from your device. In the other direction, a value from the date box is read as local time or as UTC depending on your choice. Negative numbers count backward from 1970, so dates before then work too.
How to use Unix Timestamp Converter
- Paste a number or ISO date into the Timestamp to date box, or press Now.
- Check the note about the unit. If it guessed wrong, choose one under Read as.
- Read Your time, UTC, ISO 8601, Relative, Seconds and Milliseconds, and press Copy on the one you need.
- To go the other way, pick a date under Date to timestamp, say which zone under That time is in, and copy the result.
Four units, one moment
1700000000
1700000000000
1700000000000000
1700000000000000000Read as seconds, milliseconds, microseconds and nanoseconds, each gives:
UTC: Tue, 14 Nov 2023 22:13:20 GMT
ISO 8601: 2023-11-14T22:13:20.000Z
Seconds: 1700000000
Milliseconds: 1700000000000The rows for your time and for the relative age depend on your device and the moment you run it, so they are left out here.
When it helps
- Reading a time field from a log, a JWT or a database row
- Getting the timestamp for a date, to use in a query or an API filter
- Working out whether a value is in seconds or milliseconds when a date looks wrong
- Checking what time an event happened in UTC when you are working in a different zone
Tips for a better result
- A date in January 1970 almost always means milliseconds were read as seconds, or the value was divided one time too many. A date tens of thousands of years ahead is the opposite mistake.
- Give dates with a time zone.
2023-11-14T22:13:20Zmeans one moment, while a date with no zone is read as local time on your device. - Thousands separators and spaces between digits are ignored, so a value copied from a formatted report works as it is.
Good to know
- Only your device's time zone and UTC are offered. For other zones, use the Time Zone Converter.
- Precision stops at the millisecond. Microsecond and nanosecond values are read, but their last digits are not kept.
- Auto-detect relies on digit count, so very early dates in a small unit can be misread. Choose a unit for those.
- Unix time ignores leap seconds, and dates beyond about 275,000 years from 1970 are refused.
Questions people ask
Does a timestamp have a time zone?
No. It names one moment, everywhere. Time zones only come in when that moment is displayed as a date, which is why the page shows both local and UTC.
How can I tell seconds from milliseconds?
By length, for current dates. Seconds have 10 digits and milliseconds have 13. Programs in JavaScript and Java tend to use milliseconds, while Unix tools and many databases use seconds.
What is the year 2038 problem?
Systems that store seconds in a signed 32-bit integer run out on 19 January 2038 at 03:14:07 UTC. Values stored in 64 bits are not affected, and this page handles dates far beyond that.
Why is the Seconds row a different number from what I typed?
If you typed fractions of a second or a smaller unit, the row rounds down to a whole second. The Milliseconds row keeps more detail.
What to use next
- Time Zone Converter: to show that moment in other cities
- Date Calculator: to work out the gap between two dates
- Cron Expression Explainer: to work out when a scheduled job runs next
Learn more
Last reviewed . Read our editorial policy.