Unix Timestamp Converter

Convert a Unix timestamp to a readable date and back, in seconds or milliseconds, UTC or your local time.

Current timestamp

UTC
Your local time
ISO 8601
Relative

Seconds
Milliseconds

This tool runs entirely in your browser. Nothing you enter is uploaded to a server.

Paste a Unix timestamp to see it as UTC, as your local time, and as ISO 8601, or pick a date to get the timestamp back. It detects seconds, milliseconds and microseconds from the digit count rather than guessing, and shows which it used.

How to use it

  1. Paste a timestampSeconds, milliseconds or microseconds all work. The tool says which unit it read and how it decided.
  2. Read it in contextUTC, your local time and ISO 8601 are shown together, along with how long ago it was.
  3. Or go the other wayPick a date and time in the lower field to get the timestamp in seconds and milliseconds.

Why timestamps exist

A date written as text is ambiguous in ways that cause real bugs. Is 03/04/2026 the third of April or the fourth of March? What timezone was it recorded in? Did daylight saving apply? Sorting text dates alphabetically produces nonsense unless the format is exactly right.

A Unix timestamp sidesteps all of it. It is one integer counting seconds from a fixed moment, always in UTC. Comparing two of them is a numeric comparison, sorting is trivial, and there is no format to misread. That is why almost every log file, database and API uses them internally and converts to something readable only at the edge.

Seconds, milliseconds, and how this tool decides

The Unix definition is seconds, but many platforms use milliseconds — JavaScript'sDate.now() is the one most developers meet daily — and some use microseconds. Paste a millisecond value into a tool expecting seconds and you get a date about fifty thousand years in the future.

Many converters guess by magnitude: if the number is large, assume milliseconds. That breaks for genuine dates in the early 1970s, whose second-values are small. This tool counts digits instead — ten means seconds, thirteen means milliseconds, sixteen means microseconds — and tells you which reading it used, so a wrong guess is visible rather than silent.

The 2038 problem

Systems that store timestamps in a signed 32-bit integer can represent up to 2,147,483,647 seconds, which runs out at 03:14:07 UTC on 19 January 2038. One second later the value overflows into negative territory and the date reads as December 1901.

Most modern software moved to 64-bit values long ago and is fine for roughly the next 292 billion years. The risk sits in embedded systems, older databases and file formats that fixed the field width — which is why the date still appears on risk registers.

Reading them in context

Showing UTC and local time side by side is deliberate. A timestamp from a server log is UTC, but the incident you are investigating happened at a local wall-clock time, and reconciling the two is where mistakes creep in — particularly around a daylight-saving change, where an hour repeats or vanishes entirely.

The relative time is there for the most common check of all: is this recent, and roughly how recent. Nothing you paste is uploaded, which matters since timestamps usually arrive attached to production log lines.

Frequently asked questions

What is a Unix timestamp?

The number of seconds since 1 January 1970 at 00:00 UTC, known as the Unix epoch. Because it is a single integer with no timezone or formatting attached, it is unambiguous and easy to store, which is why it appears in logs, databases and APIs everywhere.

Is my timestamp in seconds or milliseconds?

Count the digits. Ten digits is seconds — and will be until the year 2286. Thirteen is milliseconds, which is what JavaScript's Date.now() returns. Sixteen is microseconds. This tool uses the digit count rather than the magnitude, because guessing from size alone misreads dates in the 1970s.

Why does the local time differ from UTC?

A timestamp is always UTC. Your local time is that same instant shifted by your timezone offset, including daylight saving if it applied on that date. Both rows describe the same moment.

What is the year 2038 problem?

Systems that store timestamps as a signed 32-bit integer run out of range on 19 January 2038, when the value exceeds 2,147,483,647 and wraps to a negative number — putting the date in 1901. Modern systems use 64-bit values and are unaffected, but embedded and legacy software may not be.

Can a timestamp be negative?

Yes. Negative values are times before 1970 — minus 86400 is 31 December 1969. Some systems reject them, which is worth knowing if you are handling historical dates.

What is ISO 8601?

The international standard for writing dates and times as text, such as 2026-08-21T19:30:00.000Z. Unlike a timestamp it is human-readable, and unlike most local formats it is unambiguous — it never leaves you guessing whether 03/04 means March or April. The trailing Z means UTC.

Is the value I paste sent anywhere?

No. Conversion runs in your browser. Timestamps often come from production logs, so nothing is transmitted or stored.