Unix Timestamp Converter

Convert Unix timestamps to human-readable dates (and back) in UTC and your local time zone, seconds or milliseconds. Free, no sign-up — runs locally in your browser.

Current Unix timestamp: …

What is a Unix timestamp?

A Unix timestamp — also called epoch time or POSIX time — is a single number that identifies one exact instant: the count of seconds that have elapsed since 1970-01-01 00:00:00 UTC, an instant known as the Unix epoch. Instead of storing "14 November 2023, 22:13, in some time zone, in some language's format", a system stores 1700000000, and every computer on Earth agrees on what that means. Sorting is trivial (bigger number, later time), arithmetic is trivial (subtract two timestamps to get a duration), and time zones cannot corrupt the value, because the value has no time zone at all.

That elegance is why timestamps are everywhere: database columns, API responses, log lines, JWT claims (iat, exp), file metadata and message queues all carry them. And it is why a fast, trustworthy converter matters — the number is meaningless to a human until it is turned back into a date, in the right unit and the right time zone.

How to use this converter

  1. Timestamp to date: paste any numeric timestamp into the first field. The tool detects whether it is in seconds, milliseconds or microseconds from its size, converts it, and shows UTC, your local time, ISO 8601 and a relative description ("3 days ago") side by side.
  2. Date to timestamp: pick a date and time in the second field and press Convert date. You get the timestamp in both seconds and milliseconds, ready to paste into code or a database query.
  3. The banner at the top shows the current timestamp ticking once per second — handy when you just need "now" as a number.

Seconds, milliseconds, microseconds: the eternal mix-up

Unix defines the timestamp in seconds. JavaScript, however, measures time in milliseconds (Date.now() returns milliseconds), and Java, Go and various APIs use a mixture of milliseconds, microseconds and even nanoseconds. The units differ by factors of a thousand, and the failure mode is silent: a millisecond value interpreted as seconds is a date in the year 51380 (or an overflow error, if you are lucky), while a seconds value interpreted as milliseconds is a date a few hours after the epoch — January 1970. If a converted date looks absurd, the unit is almost certainly wrong; count the digits. Ten digits is seconds, thirteen is milliseconds, sixteen is microseconds, at least until the year 2286 moves seconds into eleven digits.

Leap seconds are the other quiet simplification: Unix time pretends every day has exactly 86,400 seconds and simply repeats or smears the leap second when one is inserted. For nearly all software purposes this does not matter, but it is why Unix time is not a perfectly faithful count of physical seconds since 1970.

Examples

TimestampUnitUTC date
0secondsThu, 01 Jan 1970 00:00:00 GMT
1000000000secondsSun, 09 Sep 2001 01:46:40 GMT
1700000000secondsTue, 14 Nov 2023 22:13:20 GMT
1700000000123millisecondsTue, 14 Nov 2023 22:13:20.123 GMT
-1secondsWed, 31 Dec 1969 23:59:59 GMT

Tips

For the full story — epoch trivia, leap seconds, the 2038 problem and time-zone handling — read our guide Unix timestamps explained, and for the UTC/GMT confusion see the timestamps guide's time-zone section.

Frequently asked questions

Is a Unix timestamp seconds or milliseconds?

Both exist, which is exactly the confusion. The Unix convention is seconds since the epoch, a 10-digit number today. JavaScript's Date.now() and many APIs return milliseconds instead — 13 digits. This tool detects the unit from the magnitude and tells you which one it assumed, so a wrong guess never goes unnoticed.

What is the Unix epoch?

The epoch is 1970-01-01 00:00:00 UTC, the zero point of Unix time. A timestamp counts the seconds (or milliseconds) elapsed since that instant. Negative timestamps count backwards from it and represent dates before 1970.

Why does my timestamp convert to a date in 1970 or 2286?

That is the classic seconds/milliseconds mix-up. A millisecond value read as seconds lands tens of thousands of years in the future (often clipped); a seconds value read as milliseconds lands within a day of the epoch in January 1970. Check the digit count: 10 digits means seconds, 13 means milliseconds.

Do Unix timestamps depend on time zones?

No — a timestamp is the same number everywhere on Earth. Time zones only enter when the timestamp is displayed as a local date and time. That is why this tool shows UTC and your local time side by side: same instant, two presentations.

What happens in 2038?

Systems that store timestamps as signed 32-bit integers overflow on 2038-01-19, wrapping to December 1901. 64-bit timestamps push the problem out to the year 292 billion, so modern systems are unaffected — but embedded and legacy systems still carry the 2038 bug.

What is the difference between Unix time and ISO 8601?

They describe the same instants in different notations. Unix time is a single number (1700000000). ISO 8601 is a formatted string (2023-11-14T22:13:20.000Z). The number is for machines to store and compare; the string is for humans and interchange. This tool shows both.

Related tools

Related guides