Convert Unix (epoch) timestamps to human-readable dates and back. Auto-detects whether your value is in seconds or milliseconds. Includes a live current-timestamp display.
How it works
A Unix timestamp is the number of seconds (or milliseconds) since 1970-01-01 00:00:00 UTC. To convert to a Date object, multiply seconds by 1000 (JavaScript uses milliseconds). We detect the unit automatically: values above 10^12 are treated as milliseconds.
Key features
- Auto-detection of seconds vs milliseconds
- UTC and local time output
- ISO 8601 output
- Reverse conversion (date โ timestamp)
- Live current-timestamp clock
- One-click copy
Common use cases
Pro tips
- โ10-digit number = seconds. 13-digit number = milliseconds. Our tool auto-detects.
- โJWT `exp` claims are always in seconds.
Common mistakes to avoid
- โMultiplying by 1000 when the timestamp is already in milliseconds โ you'll get a date in the year 55000.
Frequently asked questions
What is the year 2038 problem?โผ
A 32-bit signed integer overflows on 19 January 2038. Modern systems use 64-bit so this isn't a practical issue anymore, but legacy systems must be migrated.
Are Unix timestamps timezone-aware?โผ
No โ they always represent UTC. Timezone only matters when formatting for display.