Auto-detect format
Paste a 10, 13, or 16 digit number. The tool recognizes whether it is seconds, milliseconds, or microseconds. No mode switching.
A free Unix timestamp converter and epoch converter. Turn a Unix timestamp into a human date, or a date into a timestamp. Auto-detects seconds, milliseconds, and microseconds, and shows the result in UTC and your local timezone.
Type or paste your number into the input field. The tool detects whether it is in seconds (10 digits), milliseconds (13 digits), or microseconds (16 digits), and converts it as you type.
You get five formats at once: UTC, your local timezone, ISO 8601, RFC 2822, and a friendly relative time like "3 hours ago". The day of the week is shown too.
Each format has its own copy button. For lots of timestamps, switch to the Batch tab, paste them one per line, and copy the whole table as TSV for a spreadsheet.
A Unix timestamp is a single number that represents an exact moment in time. It counts the seconds that have passed since January 1, 1970 at 00:00:00 UTC. That starting point is called the Unix epoch, which is why a Unix timestamp is also known as epoch time, POSIX time, or simply Unix time.
Computers prefer timestamps because they are plain integers. There are no timezones, months, or leap-year rules to store. The value 1700000000 points to the same instant everywhere on earth, so epoch time is ideal for log files, databases, JWT tokens, and API responses. The catch is that people cannot read a raw number at a glance, which is exactly what this Unix timestamp converter fixes.
The length of the number tells you its unit. This converter auto-detects the three most common precisions, so you never have to pick a mode before you convert a timestamp to a date.
| Digits | Unit | Example | Common in |
|---|---|---|---|
| 10 | Seconds | 1700000000 | Linux, PHP, databases |
| 13 | Milliseconds | 1700000000000 | JavaScript, Java |
| 16 | Microseconds | 1700000000000000 | Python, high-precision logs |
Some systems store nanoseconds (19 digits), but seconds and milliseconds cover almost everything you will meet in day to day work.
Because a timestamp is just a count of seconds, date math becomes simple addition. Add 86400 to any timestamp and you land on the same time tomorrow. These are the values worth keeping close.
| Time span | Seconds to add |
|---|---|
| 1 minute | 60 |
| 1 hour | 3,600 |
| 1 day | 86,400 |
| 1 week | 604,800 |
| 30 days | 2,592,000 |
| 365 days | 31,536,000 |
The engineers who built early Unix systems in the late 1960s needed a fixed reference point. They picked the start of 1970 as a round, recent date, and counted seconds forward from there. The choice stuck, and today almost every operating system, programming language, and database measures time the same way. A negative timestamp simply refers to a moment before 1970.
Older systems store the timestamp in a signed 32-bit integer, which runs out of room on January 19, 2038. At that point the counter overflows and could roll back to 1901. Modern 64-bit systems have already fixed this by using a larger number that will not overflow for billions of years, but the 2038 problem is still worth knowing when you work with legacy code.
Whatever unit or timezone you are working in, paste a number into the converter above to read it as a human date, or switch to Date to Timestamp to go the other way.
Paste a 10, 13, or 16 digit number. The tool recognizes whether it is seconds, milliseconds, or microseconds. No mode switching.
See the same moment in both UTC and your browser timezone, plus ISO 8601 and RFC 2822 for spec-friendly use.
A bar at the top shows the current Unix time, ticking once per second. Click "Now" to copy it into the converter.
Paste many timestamps at once, one per line. Each is detected and converted on its own. Copy the whole table as tab-separated text.
Convert a timestamp to a date, or a date back to a timestamp. The tool gives seconds, milliseconds, and microseconds for any date.
All conversions run in your browser. Nothing is uploaded, no signup is required, and there is no rate limit.
More Developer tools you might find useful.