Unix Timestamp Converter
Enter an integer timestamp, choose seconds or milliseconds, and pick local time or UTC. The Now button fills the current clock from this device. A known check: 0 in seconds is 1970-01-01 00:00:00 UTC. More background is in the Unix timestamp guide and in local time versus UTC.
Ctrl or Cmd+Enter converts the number in the field.
Result
- ISO 8601
- —
- Clock
- —
- Epoch
- —
Seconds, milliseconds, and the epoch
A Unix timestamp counts time from 1970-01-01 00:00:00 UTC, often called the Unix epoch. Many logs store that count in seconds. JavaScript’s Date.now() uses milliseconds. If a value looks about 1,000 times too large, switch the unit. Example: 1609459200 seconds is 2021-01-01 00:00:00 UTC.
When this tool helps
Use the converter when a log, a database, or an API gave you a raw epoch number, and you need a clock you can read. Keep the UTC label when you compare events across regions. Use local time when you want the same instant on this device’s zone. The page does not guess a zone from an IP address. Now always reads the clock in this browser.
Questions
Why is 0 equal to 1970-01-01?
That midnight UTC is the defined start of the Unix epoch. The converter prints it as 1970-01-01T00:00:00.000Z in the ISO line when the unit is seconds and the value is 0.
Does Now match my system clock?
Yes. Now uses this device’s current time. If the device clock is wrong, the number will be wrong in the same way.
Does the number leave this tab?
No. Conversion runs in the browser.