Date & Time Tools · Guide
Unix Timestamp Converter guide
Convert Unix timestamps (seconds or milliseconds) to dates and back.
Open the Unix Timestamp ConverterAbout the Unix Timestamp Converter
A Unix timestamp (epoch time) counts the time since 1970-01-01 00:00:00 UTC. Most systems use seconds (1700000000), while JavaScript, Java and many APIs use milliseconds (1700000000000). Mixing them up is one of the most common date bugs.
This converter turns timestamps into UTC, your local time and ISO 8601 — and converts dates back to timestamps in both seconds and milliseconds.
How to use
- Enter a timestamp. With Auto unit, values of 100 billion or more are treated as milliseconds; otherwise as seconds. Choose the unit explicitly to override.
- Click Now to fill in the current time.
- To go the other way, enter a date like
2026-11-23 14:30and choose whether it's in your local time zone or UTC. Strings with an explicit offset (Z,+02:00) are always absolute. - Copy any result with its copy button.
Examples
Seconds
Input
1700000000Output
2023-11-14T22:13:20.000ZMilliseconds
Input
1700000000000Output
2023-11-14T22:13:20.000ZDate to timestamp
Input
2026-11-23T14:30:00ZOutput
1795444200 (seconds) · 1795444200000 (ms)Unix timestamps explained
Unix time ignores leap seconds and has no time zone: the same instant has the same timestamp everywhere. Time zones only matter when converting to a human-readable date.
Signed 32-bit seconds overflow on 2038-01-19 03:14:07 UTC (the “Year 2038 problem”). Modern 64-bit systems are unaffected.
Get the current timestamp in code
JavaScript: Math.floor(Date.now() / 1000)
Python: int(time.time())
Go: time.Now().Unix()
Bash: date +%s
PostgreSQL: SELECT extract(epoch FROM now());Frequently asked questions
How do I know if a timestamp is in seconds or milliseconds?
Count the digits. Current timestamps have 10 digits in seconds and 13 in milliseconds. The tool shows which unit it inferred and lets you override it.
Which time zone is “local”?
The time zone your browser reports (shown next to the result). It's determined on your device; it isn't sent anywhere.
Are negative timestamps supported?
Yes. Negative values represent dates before 1970, e.g. -86400 is 1969-12-31T00:00:00Z.
Ready to try it? Everything runs locally in your browser.
Open the tool