Unix timestamp converter
Paste a timestamp or pick a date and get local time, UTC, ISO 8601 and a relative phrase together.
—
—
·
Type a number and the unit is guessed from its digit count; type text and ISO 8601 and similar formats are parsed.
Conversion happens in your browser; nothing you type is sent to a server. Local time is derived from your device's time zone.
How to use
- Paste the number into the box; the unit is read from its digit count.
- If the guess is wrong, pick seconds or milliseconds from the list.
- Read the local time, UTC and ISO 8601 rows and copy what you need.
- For the other direction, pick a date in the calendar below and read the timestamp.
Unix time: one number, one instant
A Unix timestamp is the number of seconds since 1 January 1970 00:00:00 UTC. It carries no time zone: the same instant is the same number in Istanbul, London and Tokyo. Time zones only matter when the value is displayed.
That is why logs, databases and APIs store timestamps instead of formatted dates: comparing two of them is one subtraction, and daylight saving or regional offsets cannot spoil the result.
The UTC row on this page is always fixed. The local row follows your device's time zone, so two people can read the same timestamp as different local times and both be right.
Seconds or milliseconds? Count the digits
| Digits | Unit | Example | Where you meet it |
|---|---|---|---|
| 10 | seconds | 1760000000 | PHP time(), Python time(), Unix tools |
| 13 | milliseconds | 1760000000000 | JavaScript Date.now(), Java, MongoDB |
| 16 | microseconds | 1760000000000000 | PostgreSQL, some measurement systems |
| 19 | nanoseconds | 1760000000000000000 | Go, Prometheus, high-resolution logs |
The tool guesses from the digit count and states which unit it used. If the result lands in 1970 or in a distant future, switch the unit by hand — the most common mistake is reading milliseconds as seconds, which puts the date 55,000 years ahead.
ISO 8601 and time-zone notation
2026-10-09T14:30:00Z— the trailing Z (Zulu) means UTC.2026-10-09T17:30:00+03:00— the same instant written in a +03:00 zone.2026-10-09 14:30— no zone given, so a browser reads it as local time. Sending such a value to an API is a classic source of one-hour bugs.- Where daylight saving applies, local time shifts twice a year while UTC does not. Do the arithmetic in UTC and convert to local only at the end.
Limits worth knowing
- Year 2038: systems that store the timestamp in a signed 32-bit integer overflow on 19 January 2038. Anything 64-bit, this page included, is unaffected.
- Leap seconds: Unix time does not count them; every day is treated as exactly 86,400 seconds, so it drifts a few seconds from astronomical time.
- Lost milliseconds: converting to seconds drops the fraction. Converting back shows
.000— that loss is expected. - Negative values: they point before 1970, and some old libraries handle them incorrectly.
- Browser limit: JavaScript holds dates up to ±8.64×10¹⁵ milliseconds (about ±273,000 years). Beyond that the tool shows a range warning.
The same conversion elsewhere
| Environment | Timestamp to date | Date to timestamp |
|---|---|---|
| JavaScript | new Date(ms) | Date.now() |
| Python | datetime.utcfromtimestamp(s) | int(time.time()) |
| PHP | date('Y-m-d H:i', $s) | time() |
| MySQL | FROM_UNIXTIME(s) | UNIX_TIMESTAMP() |
| Excel | =A1/86400+25569 | =(A1-25569)*86400 |
The 25569 in the Excel row is the serial number of 1 January 1970; remember to format the cell as a date.
Glossary
- Unix time
- Seconds elapsed since 1 January 1970 UTC, also called epoch time.
- Epoch
- The moment counting starts: 1 January 1970 00:00:00 UTC.
- UTC
- Coordinated Universal Time, the reference for all time zones.
- ISO 8601
- The standard that writes dates as
2026-10-09T14:30:00Z. - Z (Zulu)
- The ISO 8601 suffix meaning UTC.
- Millisecond
- A thousandth of a second; JavaScript keeps time in this unit.
- Leap second
- A second added to keep clocks in step with Earth's rotation; Unix time ignores it.
- Year 2038 problem
- The overflow of 32-bit timestamps on 19 January 2038.
Frequently asked questions
What is a Unix timestamp?
The number of seconds since 1 January 1970 00:00:00 UTC. It carries no time zone: the same instant is the same number everywhere, and only the display is converted to local time.
What is the difference between a 10-digit and a 13-digit number?
Ten digits are seconds, thirteen are milliseconds. Sixteen digits are microseconds and nineteen are nanoseconds. The tool guesses from the digit count, and you can override it with the unit list.
Why does the result look an hour off?
Local time depends on your device's time zone and daylight saving. The UTC row is always fixed, so compare using that one.
What does the Z in the ISO 8601 row mean?
Zulu, which means UTC. <code>2026-10-09T14:30:00Z</code> is 14:30 in UTC.
Can a timestamp be negative?
Yes, it points to a moment before 1970. The tool converts negative values too.
Does the year 2038 problem affect me?
On old systems storing the timestamp in a signed 32-bit integer it overflows on 19 January 2038. This page uses JavaScript's 64-bit numbers, so it is not affected.
Is the date I enter stored?
No. Everything is computed in your browser; nothing is sent or saved.