Unix Timestamp Converter
Epoch time in both directions — timestamps into readable dates, dates into timestamps — with the current time ticking live.
The current Unix timestamp — seconds since 1 January 1970 (UTC):
| Your local time | — |
| UTC | — |
| Relative | — |
| Timestamp (seconds) | — |
| Timestamp (milliseconds) | — |
How to use it
Seconds or milliseconds? The classic bug
Unix time counts seconds since 1 January 1970, so a current timestamp has 10 digits. JavaScript's Date counts milliseconds, so the same moment has 13. Feed a milliseconds value into a system expecting seconds and your date lands in the year 55000+; feed seconds where milliseconds are expected and you are back in January 1970. Half of all 'the date is wrong' bugs in logs and APIs are exactly this. This converter accepts either, detects which by its length, and shows both forms side by side so you can copy the one your system wants.
Seconds since 1970: the number underneath the internet
Almost every system you have ever used keeps time as a single number: the count of seconds since midnight on 1 January 1970, UTC — the Unix epoch. It is in your log files, your database rows, your API responses and your analytics, usually looking like 1761187200 and conveying nothing to a human reader. This converter translates in both directions: a timestamp becomes a readable date and time, and any date and time becomes its timestamp, with the current epoch ticking live at the top of the page for the copy-paste jobs that start most debugging sessions.
The classic traps deserve their fame. The first is units: Unix time is seconds, but JavaScript's clock runs in milliseconds, so real-world data contains both ten-digit and thirteen-digit numbers, and feeding one kind where the other is expected produces dates in 1970 or the year 56000 — the single most common timestamp bug in working software. The second is time zones: the timestamp itself is zone-free (it is always UTC underneath), while every human-readable rendering of it depends on where you are standing, which is why the same number is two different clock times in London and Lahore. And for the archivists: 32-bit systems run out of seconds in January 2038, the one deadline the whole industry has agreed to worry about later.
All converting happens in your browser — timestamps from private logs and production systems are decoded on your own machine and sent nowhere.
Questions, answered
Is a Unix timestamp in seconds or milliseconds?
Traditionally seconds — a 10-digit number. JavaScript counts milliseconds (13 digits), which is the classic mix-up. This converter accepts both and tells them apart by length.
What is the current Unix timestamp?
It is ticking at the top of this page — the seconds elapsed since 1 January 1970, 00:00 UTC, updated every second.
Why do developers use Unix time?
One number, no timezones, no formats, no daylight-saving arguments: easy to store in a database, compare, sort and pass between systems. Every major language can convert it back to a date.
What is the year 2038 problem?
Old 32-bit systems store the timestamp in a signed 32-bit integer, which runs out on 19 January 2038. Modern 64-bit systems are unaffected — but the date is why timestamps in old software sometimes explode.