Unix Timestamp Converter

Turn epoch numbers into dates you can read — and dates back into timestamps.

Runs in your browser — your files and text never leave this device

How do I convert a Unix timestamp to a date?

A Unix timestamp is the number of seconds (or milliseconds) since 1 January 1970 — and this free online Unix timestamp converter turns that number into a readable date, or a date back into a timestamp. Paste a timestamp, or pick a date; the converter handles seconds and milliseconds, in UTC and your local time, with a live epoch clock showing the current timestamp.

The current Unix timestamp is

—

—


Related tools

How to use the Timestamp Converter

  1. Paste a timestamp (seconds or milliseconds — it detects which) and press Convert to date.
  2. Or pick a date and time and press Convert to timestamp to get both the seconds and milliseconds values.
  3. The clock at the top always shows the current epoch second, ticking live.

The number hiding inside every log file

Open any server log, API response or database export and you will meet long numbers like 1762272000 where a date should be. That is Unix time: seconds counted from 1 January 1970, UTC. Software loves it because arithmetic is trivial — subtract two timestamps and you know exactly how far apart two events were, in any country, with no time-zone arguments. Humans, sensibly, do not read time that way, which is why this converter exists on every developer's bookmark bar.

The two traps are worth knowing. First, JavaScript and many APIs use milliseconds (13 digits) while Unix tradition uses seconds (10 digits) — mixing them up throws a date into 1970 or the year 56000. Second, a timestamp is not "in" a time zone; it is one instant, and only its display changes. This tool shows the UTC reading, your local reading, the ISO format and how long ago (or until) it is — the four things you actually need when debugging.

This task often leads to two others: Time Zone Converter converts a time between cities and time zones, and JWT Decoder decodes the header and payload of a JSON Web Token.

Why computers count seconds from 1970

Unix time starts at midnight on 1 January 1970, UTC — a date chosen when the Unix operating system was being built, simply because it was a convenient starting point. Every second since then adds one to the count, so a timestamp is nothing more than a running total of seconds. The idea caught on because it is brutally simple: one number, no months, no leap years, no time zones to argue about, and any two moments can be compared by subtracting one number from another.

That simplicity is why timestamps are everywhere in software: database records, log files, file modification times, security tokens, and the data passed between apps and servers. A timestamp is the same instant for everyone on the planet — it is only the display that changes with time zone. The converter shows the UTC reading, your local reading and the ISO format side by side, so you can see the same moment in all three forms at once.

The edges: before 1970 and after 2038

Timestamps can go negative: a moment before 1 January 1970 is simply a negative number of seconds, and this converter handles those too, so historical dates convert just as well as recent ones. The other edge is the far future. Old 32-bit systems store a timestamp in a signed 32-bit integer, which runs out on 19 January 2038 — the year 2038 problem — but modern systems use 64-bit timestamps, which will keep counting for billions of years. Your browser works with 64-bit numbers, so any date it can represent converts here.

A timestamp's precision is one second in its classic form, or one millisecond in the 13-digit form — events inside the same second share the same value, which is why systems that need finer ordering add their own sequence numbers or finer clocks. For everyday debugging, though, the second is the unit that matters, and the live clock at the top of this page is a quick way to grab the current epoch second when you need to test an API call or stamp a test record with the present moment.

Seconds or milliseconds — and why it matters

The most common confusion is units: a 10-digit number is usually seconds, a 13-digit number is milliseconds, and feeding one to the other gives a date in 1970 or thousands of years in the future. This epoch to date converter accepts both — pick seconds or milliseconds and the result is shown in UTC and your local time side by side, so a log timestamp from a server in another country reads correctly wherever you are.

The reverse works the same way: pick a date and time to get its date to Unix timestamp value, useful when an API wants a timestamp for a deadline or a scheduled job. And if you just need the current Unix timestamp — for a quick test, a filename or a cache-buster — the live epoch clock at the top of the page shows it ticking in real time, in seconds and milliseconds.

Frequently asked questions

What is a Unix timestamp?

The number of seconds that have passed since midnight UTC on 1 January 1970 (the "epoch"). Computers store times this way because one number is easy to save, sort and subtract — humans just cannot read it.

Seconds or milliseconds — which is my number?

Count the digits: 10 digits is seconds, 13 digits is milliseconds. This converter detects it automatically — anything with 12 or more digits is treated as milliseconds.

Why do UTC and my local time differ?

A timestamp is one fixed moment for the whole planet; the clock reading depends on where you stand. The converter shows both the UTC reading and your device's local reading of the same moment.

What dates are supported?

Any date your browser can represent — far past and far future. Negative timestamps (before 1970) also work.

Why does my timestamp show a date in 1970?

Almost always a units mix-up: you entered milliseconds where the converter expected seconds, or the other way round. A 10-digit number is seconds; a 13-digit number is milliseconds. Switch the unit and the date will be correct.

What is the current Unix timestamp?

The live epoch clock on this page shows the current Unix timestamp in seconds and milliseconds, updating every second. You can copy it straight from the page for a quick test, a filename or a cache-buster.

How do I turn a date into a Unix timestamp?

Pick the date and time in the converter and it gives you the timestamp in seconds (and milliseconds). Useful when an API or a scheduled job wants a timestamp instead of a date — just make sure you know whether the API expects seconds or milliseconds.