Unix timestamp converter
Paste a Unix timestamp to see the date and time it stands for, in UTC, ISO 8601 and your own time zone. Or pick a date and get its timestamp back. The current Unix time ticks at the top so you can copy it.
It works out the unit from the number’s length, so a 13-digit timestamp from JavaScript and a 10-digit one from a database both just work. It’s for developers reading logs, API responses and database rows.
Current Unix time (seconds)
…
Free with a ShipScroll account.
How to use the Unix Timestamp Converter
- Paste a timestamp, like 1764547200, into the first box.
- Press Convert. The unit is detected for you; change it under Unit if your number is unusual.
- To go the other way, pick a date and time, choose your time zone or UTC, and copy the timestamp.
What a Unix timestamp is
A Unix timestamp counts the seconds since 00:00:00 UTC on 1 January 1970, known as the Unix epoch. POSIX defines it this way and ignores leap seconds, so every day is exactly 86,400 seconds. Times before 1970 are negative numbers.
Because it’s a single number with no time zone, it’s an easy way to store and compare moments. You only turn it into a local date when you show it to someone.
Seconds, milliseconds, microseconds or nanoseconds?
| Digits today | Unit | Where you’ll see it |
|---|---|---|
| 10 | Seconds | Unix tools, PHP time(), Python int(time.time()), most databases |
| 13 | Milliseconds | JavaScript Date.now(), Java System.currentTimeMillis() |
| 16 | Microseconds | PostgreSQL internals, some logging systems |
| 19 | Nanoseconds | Go time.Now().UnixNano(), tracing tools |
Get the current timestamp in code
| Language | Seconds since the epoch |
|---|---|
| JavaScript | Math.floor(Date.now() / 1000) |
| Python | int(time.time()) |
| PHP | time() |
| Go | time.Now().Unix() |
| Java | Instant.now().getEpochSecond() |
| PostgreSQL | EXTRACT(EPOCH FROM now()) |
| MySQL | UNIX_TIMESTAMP() |
| Shell | date +%s |
The year 2038 problem
Systems that store the timestamp as a signed 32-bit number run out at 2,147,483,647, which is 03:14:07 UTC on 19 January 2038. One second later the number wraps to a date in 1901. Modern systems use 64-bit numbers, which last for billions of years, but old embedded devices and file formats can still be affected.
Questions
What is the current Unix timestamp?
It’s shown live at the top of this tool, in seconds and milliseconds, and updates every second. Press Copy to use it.
How do I convert a Unix timestamp to a date?
Paste it into the first box and press Convert. You’ll get the date in UTC, in ISO 8601 and in your own time zone. In code, multiply seconds by 1,000 and pass them to new Date() in JavaScript, or use datetime.fromtimestamp() in Python.
Is a Unix timestamp in UTC?
Yes. It counts seconds from midnight UTC on 1 January 1970, so the same moment has the same timestamp everywhere. Time zones only matter when you turn it into a readable date.
Why is my timestamp 13 digits long?
It’s in milliseconds, which JavaScript and Java use. Divide by 1,000 for seconds. This tool detects the unit for you.
Do Unix timestamps include leap seconds?
No. POSIX treats every day as exactly 86,400 seconds, so leap seconds aren’t counted.
Related tools
- ISO Week CalculatorFind the ISO week number of any date, and the dates of any week.
- UUID GeneratorRandom v4 or time-ordered v7 UUIDs, up to 1,000 at once, plus a checker.
- DNS LookupList a domain’s A, AAAA, CNAME, MX, NS and TXT records in one place.
Sources
Put your SaaS or AI tool in front of this week’s launches
Link your product, pick your weeks and see a live preview before you pay — or launch for free.
