Unix Timestamp Converter
Convert Unix timestamps to human-readable dates and back, in seconds or milliseconds.
Privacy: This tool runs entirely in your browser. Your data never leaves your device and is never uploaded to any server.
Current Unix timestamp
0
How to use this timestamp converter
- Paste a timestamp to see the matching date, in UTC and in your local time.
- Or type a date to get the equivalent timestamp.
- Seconds and milliseconds are both handled automatically.
- Conversion is local arithmetic — nothing is uploaded.
Timestamps worth memorising
Most timestamp work is really just multiplying or dividing by one of these constants.
| Period | Seconds | Notes |
|---|---|---|
| 1 minute | 60 | |
| 1 hour | 3,600 | |
| 1 day | 86,400 | The single most useful number here |
| 1 week | 604,800 | 7 days |
| 30 days | 2,592,000 | A convenient approximation of a month |
| 1 year | 31,536,000 | 365 days, so it ignores leap years |
What a Unix timestamp is
A Unix timestamp counts the seconds elapsed since 1 January 1970 at 00:00 UTC, a moment known as the epoch.
It is popular because it is a single integer: trivial to store, compare and sort, and free of time zone ambiguity. The number is always UTC; only the display is local.
Seconds or milliseconds?
Older systems and most Unix tooling use seconds, which is why you see ten-digit numbers such as 1700000000.
JavaScript and many APIs use milliseconds instead, giving thirteen digits. Feeding milliseconds to a seconds-based system puts you tens of thousands of years in the future, which is a very common bug.
The year 2038 problem
A signed 32-bit integer cannot hold a timestamp past 03:14:07 UTC on 19 January 2038. Systems still using 32-bit time will overflow at that moment.
The fix is to store timestamps in 64 bits, which most modern platforms already do. If you maintain anything old, it is worth checking.
Frequently asked questions
What is a Unix timestamp?
It is the number of seconds (or milliseconds) since 1 January 1970 UTC, widely used to store dates in software.
Does it handle seconds and milliseconds?
Yes. Values under about 1e12 are treated as seconds and larger values as milliseconds.
Which time zone is used?
Timestamps are UTC-based. The tool also shows the equivalent local time in your browser.
How do I get the current timestamp in JavaScript?
Date.now() returns milliseconds. For seconds, divide by 1000 and round down with Math.floor.
Why does my timestamp show a date in 1970?
A value close to zero is the epoch itself. Reading a milliseconds value as seconds, or the reverse, is the most common timestamp bug there is.
Do timestamps account for leap seconds?
No. Unix time ignores leap seconds entirely, which is why it stays a simple count of seconds rather than tracking the exact rotation of the Earth.
More Number & Time tools
Number Base Converter
Convert numbers between binary, octal, decimal and hexadecimal with BigInt support for arbitrarily large values.
Percentage Calculator
Work out a percentage of a value, what percent one number is of another, and percentage increase or decrease.
Unit Converter
Convert between metric and imperial units of length, weight, volume and temperature instantly.
Age Calculator
Work out an exact age in years, months and days, plus total days lived and time until the next birthday.