Unix timestamp converter
A Unix timestamp (also called epoch time) is the number of seconds that have elapsed since 00:00:00 UTC on 1 January 1970, the moment known as the Unix epoch. It is the most common way software stores an instant — in databases, log files, API responses and JWT tokens — because it is a single number free of time zones. This converter turns epoch values into readable dates and converts any date back into a timestamp, all in your browser.
How it works
Enter an epoch value and choose seconds or milliseconds. The tool
multiplies seconds by 1000 to build a JavaScript Date, then formats it four
ways: the UTC time (no offset), your local time (shifted by your time zone
and daylight saving), the ISO 8601 string (e.g. 2021-01-01T00:00:00.000Z),
and a relative label such as “3 hours ago” or “in 2 days”. The reverse
direction takes a date and time from the picker and reports the matching epoch
seconds and milliseconds.
Example
The timestamp 1609459200 in seconds is 1609459200 × 1000 milliseconds,
which the Date object resolves to 2021-01-01T00:00:00.000Z — midnight UTC on
New Year’s Day 2021. Read as milliseconds instead, the same digits would point to
19 January 1970, which is why selecting the correct unit matters.
| Value | Unit | Resolves to (UTC) |
|---|---|---|
| 0 | seconds | 1970-01-01 00:00:00 |
| 1609459200 | seconds | 2021-01-01 00:00:00 |
| 1609459200000 | milliseconds | 2021-01-01 00:00:00 |
Everything runs in your browser using the built-in Date object — nothing you
type is ever uploaded.