Unix Timestamp Converter, Seconds and Milliseconds

Paste an epoch value or a date. You get the same moment as a readable date in UTC, in your own time zone, and as ISO 8601 — plus the value in both seconds and milliseconds.

Unix timestamp converter

Converted in this tab — nothing sent anywhere

Value Epoch or date

A 10-digit value is seconds, a 13-digit value is milliseconds. The tool reads the length and says which one it used, so you are never guessing.

Read as seconds

Same moment Copy any row
UTC 2023-11-14 22:13:20 UTC
Your time zone
ISO 8601 2023-11-14T22:13:20Z
Seconds 1700000000
Milliseconds 1700000000000

The zone line is your browser's own zone, with the offset that applies to this exact moment — not today's offset.

Ten digits or thirteen

Every "my timestamp is wrong by fifty thousand years" bug is the same bug: a value in milliseconds read as seconds, or the other way around. Both counters start at the same moment, so they differ only by a factor of 1,000 — and the difference between them is, at this scale, a geological era.

The length gives it away. Right now a Unix timestamp in seconds has 10 digits and one in milliseconds has 13. Read a 13-digit value as seconds and you land tens of thousands of years in the future; read a 10-digit value as milliseconds and you land in January 1970. Neither error throws an exception, which is why it survives to production.

Where each one comes from is worth memorizing, because the language you are in decides the unit:

  • Seconds: PHP time(), Python time.time(), Go time.Now().Unix(), MySQL UNIX_TIMESTAMP(), most REST APIs.
  • Milliseconds: JavaScript Date.now() and getTime(), Java System.currentTimeMillis(), Android, .NET DateTimeOffset.ToUnixTimeMilliseconds().

Both counters reached their current digit count on the same day: 9 September 2001 at 01:46:40 UTC, when the seconds count passed 1,000,000,000 and the milliseconds count passed 1,000,000,000,000. The seconds counter keeps ten digits until 2286.

Advertisement

The 2038 boundary

Signed 32-bit integers stop at 2,147,483,647, and a system that stores a Unix timestamp in one runs out on 19 January 2038 at 03:14:07 UTC. One second later the value overflows to the most negative number the type can hold, which decodes to 13 December 1901 at 20:45:52 UTC. That is the whole 2038 problem: not a wrong date, but a date that jumps backwards by 137 years.

Most current systems already store timestamps in 64-bit integers, which pushes the equivalent boundary to the year 292,277,026,596. The ones that have not are usually embedded: firmware, industrial controllers, old database columns, a file format someone wrote in 2004. If you are choosing a column type today, the choice costs nothing now and is very expensive later.

Advertisement

Time zones are not part of the timestamp

A Unix timestamp is a single number naming one instant. It carries no time zone, no calendar and no daylight saving rule; those are applied when the number is turned into text. That is why the same value is 21:24 in UTC and 05:24 the next morning in Tokyo, and why the value does not change when you cross a border.

Three traps follow from that:

  • EST is not EDT. The search suggestions for utc to est include both -4 and -5, and both are right in their season. Eastern Standard Time is UTC−5; Eastern Daylight Time is UTC−4. A page that prints "EST" for July is printing the wrong label even when the arithmetic is right.
  • IST is three different zones. India Standard Time is UTC+5:30, Irish Standard Time is UTC+1, Israel Standard Time is UTC+2. Half-hour offsets exist and are not a rounding error — India and Newfoundland both use them.
  • DST is a local rule, not an offset. Countries switch on different dates and some do not switch at all, so "add five hours" is only correct until the last Sunday of March or October, depending on where you are.

Here is the whole idea in one value. The timestamp 1700000000 is 14 November 2023, 22:13:20 in UTC. In Berlin that is 23:13:20 the same evening, in New York 17:13:20 the same afternoon, and in Tokyo 07:13:20 the next morning. Four renderings, one number, no contradiction — and none of them is more correct than the others.

This converter avoids the labels and shows UTC plus the time zone your browser reports. Two unambiguous renderings beat one labeled guess.

The practical rule that follows: store the number, render the text. Servers keep UTC and convert at the edge, because a server that stores local time and then moves data centre is storing a fact about its old location rather than about the event.

ISO 8601, and what the Z means

2026-11-23T21:24:39Z and 2026-11-23T21:24:39+08:00 are two spellings of the same format. The T separates date from time, and the Z is a zero offset — Zulu in the old radio alphabet, meaning UTC. An offset such as +08:00 does the same job for a local time.

The version people get wrong is 2026-11-23 21:24:39 with no zone at all. Every parser has to guess, and different languages guess differently: JavaScript treats a date-time string without a zone as local time, while a date-only string as UTC. That inconsistency is worth knowing before you decide a timestamp is corrupted.

There is also a compact form with no separators — 20261123T212439Z — which is legal ISO 8601 and shows up in filenames and in older APIs. It is the same instant as the version with dashes and colons; only the punctuation is missing.

Leap seconds, and why the count is clean

Unix time treats every day as exactly 86,400 seconds. Real days are not: UTC occasionally gets a leap second inserted to stay within a second of the Earth's rotation, and 27 of them have been added since 1972, the last at the end of 2016. Because Unix time counts seconds and ignores those insertions, a Unix timestamp and a UTC clock can differ by that handful of seconds. For scheduling, logs and ordinary arithmetic it never matters; for anything that has to line up with a time standard, it does.

Nothing leaves the tab

Timestamps from logs, tokens and database rows are the kind of value people paste without thinking, and an epoch value plus a URL is sometimes enough to identify a record. The conversion here runs in JavaScript on this page: no value is sent to a server, nothing is logged, and nothing is stored between visits.

Frequently asked questions

Is my 13-digit number seconds or milliseconds?

Milliseconds. A 10-digit value is seconds and a 13-digit value is milliseconds, and the gap between the two readings is around 55,000 years. This page reads the length, states which unit it used, and shows the value in both units so you can check.

Why does my timestamp turn into January 1970?

Because it is close to zero. An empty value, a value of 0, or a small number read in the wrong unit all land near the epoch itself, which is 1 January 1970 at 00:00:00 UTC. Check the digit count before assuming the data is corrupt.

What happens in 2038?

A Unix timestamp stored in a signed 32-bit integer overflows at 2,147,483,647, which is 19 January 2038 at 03:14:07 UTC. The next second wraps to 13 December 1901. Systems that already use 64-bit integers are not affected.

Why is the converted time off by an hour?

Daylight saving. The offset changed on a date that differs by country, and the label on the result may be the standard-time name even in a daylight-saving month. Compare against UTC first, then apply the offset for the date you are looking at rather than for today.

Can a Unix timestamp be negative?

Yes. Negative values are valid and point to dates before 1 January 1970; many libraries handle them correctly. Some older systems still reject them, which is one reason to test the boundary rather than assume it.

Advertisement