Timestamp Converter turns a Unix timestamp into a readable date and time, and turns a date and time back into a timestamp. Both directions work in seconds or milliseconds, and both let you choose the time zone the result is shown in.
The card at the top is a live readout: your local time together with the current second and millisecond timestamps, updating once a second, each with a one-click copy button.
Everything is calculated in your browser and works offline; nothing you type is uploaded.
| Seconds | Milliseconds | |
|---|---|---|
| Digits | 10 | 13 |
| Example | 1791277200 | 1791277200000 |
| Who uses it | Unix, most REST APIs, MySQL | JavaScript Date.now(), Java, PHP (ms) |
| To get milliseconds | multiply by 1000 | already there |
| Typical range | 1901 – 2038 as a signed 32-bit value | far wider, but limited by JavaScript dates |
A Unix timestamp is the number of seconds — or milliseconds — that have elapsed since 1 January 1970 at 00:00:00 UTC, not counting leap seconds. It is time-zone independent: 1791277200 is the same instant everywhere, it simply prints as a different wall-clock time depending on the zone.
Count the digits: 10 digits is almost certainly seconds and 13 digits means milliseconds. JavaScript's Date.now() and Java's System.currentTimeMillis() return milliseconds, while most REST APIs and the Unix date command use seconds.
Because a timestamp is time-zone independent but a readable date and time is not. Check the time zone dropdown: the same instant is 09:00 in UTC and 17:00 in Beijing.
Yes. Each zone is read from your browser's own time-zone database, so summer and winter offsets are applied automatically. The UTC±n shown next to a zone is the offset in effect right now.
Yes. Click the calendar icon next to the date fields to choose a day, then set the hour, minute and second in the same popup. The six fields update as you click, and you can still type in them by hand.
Each field is clamped when you leave it: months stop at 12, days stop at the last day of that month, hours at 23, and minutes and seconds at 59. February is shortened to 28 or 29 days depending on the year.
The date fields accept years from 1000 to 9999. Extremely large millisecond timestamps may fall outside the range JavaScript dates can represent.
No. Everything is computed in your browser and works offline; nothing you type leaves your device.