Unix Timestamp Converter
Convert Unix timestamps to human dates and back, see the current timestamp in seconds and milliseconds, and read any timestamp as a relative time like '3 hours ago' — in UTC or your local time.
Seconds and milliseconds are auto-detected. 10 digits = seconds, 13 digits = milliseconds.
How to use
- Paste a Unix timestamp (seconds or milliseconds — auto-detected) to see the date it represents.
- Use 'Use current time' to fill in the timestamp for right now.
- Toggle UTC / local time to see the date in the timezone you need.
- Copy the ISO date for logs, APIs or code.
Example
Input: 1700000000
Output: 2023-11-14T22:13:20.000Z · 14 Nov 2023, 22:13:20 UTC
How it works
A Unix timestamp is the number of seconds (or milliseconds) since 1 January 1970, 00:00:00 UTC. Converting one way divides by 1,000 or formats the instant as a date; converting the other way counts the seconds between the epoch and the date you give.
Date = epoch + timestamp seconds. Timestamp = (date − 1970-01-01T00:00:00Z) in seconds. 10 digits means seconds, 13 digits means milliseconds.
1700000000 seconds is 2023-11-14T22:13:20.000Z — 14 November 2023, 22:13:20 UTC.
Edge cases to know
- Seconds and milliseconds are auto-detected by magnitude (10 digits = seconds, 13 = milliseconds).
- Timestamps outside JavaScript's Date range (±8,640,000,000,000,000 milliseconds) are rejected.
- Relative times like '3 hours ago' are computed against the moment you load the page.
Limits & compatibility
- Seconds and milliseconds are auto-detected by magnitude (10 digits = seconds, 13 = milliseconds).
- Timestamps outside ±8,640,000,000,000,000 milliseconds (JavaScript Date range) are rejected.
- Relative times like '3 hours ago' are computed against the moment you load the page.
Privacy
Conversion runs locally in your browser. Timestamps are never sent to a server or stored.
Related tools
Questions about Unix Timestamp Converter
What is a Unix timestamp?
The number of seconds since 1 January 1970, 00:00:00 UTC (the Unix epoch). For example, 1700000000 is 2023-11-14T22:13:20.000Z. Timestamps are how most systems store dates internally.
How do I tell seconds from milliseconds?
By length: 10 digits is seconds, 13 digits is milliseconds. This tool auto-detects the unit from the magnitude, so you can paste either.
Why does the same timestamp show different times in different tools?
Because of timezones. The timestamp itself is absolute (UTC); what changes is how it is displayed. Use the UTC / local toggle here to see both.
What does '3 hours ago' mean for a future timestamp?
Future timestamps are shown as 'in 2 days' style relative times instead. Relative times are computed against the moment you load the page.