Timestamp Converter

Timestamp Converter

Convert between Unix timestamps and dates
PricefreeLocal processingOffline

About this converter

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 vs milliseconds
SecondsMilliseconds
Digits1013
Example17912772001791277200000
Who uses itUnix, most REST APIs, MySQLJavaScript Date.now(), Java, PHP (ms)
To get millisecondsmultiply by 1000already there
Typical range1901 – 2038 as a signed 32-bit valuefar wider, but limited by JavaScript dates

Frequently asked questions

What is a Unix timestamp?

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.

Should I use seconds or milliseconds?

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.

Why does my timestamp convert to a different date than I expected?

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.

Does it handle daylight saving time?

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.

Can I pick a date from a calendar instead of typing?

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.

What happens if I type a number that is out of range?

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.

Is there a date range limit?

The date fields accept years from 1000 to 9999. Extremely large millisecond timestamps may fall outside the range JavaScript dates can represent.

Is my data uploaded anywhere?

No. Everything is computed in your browser and works offline; nothing you type leaves your device.