Unix Timestamp Converter

Paste an epoch timestamp and see the date in UTC, your time zone and around the world, with relative time. Pick a date to get its timestamp, or copy the live current time.

Loading Unix Timestamp Converter…

How to Use Unix Timestamp Converter

1

Paste a timestamp or date

Enter Unix seconds, Unix milliseconds or an ISO 8601 date such as 2026-01-01T00:00:00Z. Leave the box empty to see the current time, updated every second.

2

Or pick a date and time

Use the date picker to choose a moment and get its Unix timestamp without typing.

3

Read every format at once

The result is shown as Unix seconds, milliseconds, ISO 8601 in UTC and in your time zone, and a relative time such as "3 hours ago".

4

Compare across time zones

The same moment is listed in several cities around the world, which helps when you read logs from servers in other regions. Copy any row with its copy button.

Unix Timestamp Converter Guide

What a Unix timestamp is

A Unix timestamp counts the seconds since 00:00:00 UTC on 1 January 1970, ignoring leap seconds. It has no time zone: 1700000000 is the same instant everywhere on Earth, which is why databases, logs, JWT claims and APIs use it to store times.

Many systems use milliseconds instead. JavaScript's Date.now(), Java's System.currentTimeMillis() and most browser APIs return 13-digit millisecond values, while Unix tools, Python's time.time() and JWT claims use 10-digit seconds. The converter detects seconds, milliseconds, microseconds or nanoseconds from the number of digits and tells you which it used.

Reading the result

Every result has its own copy button: Unix seconds and milliseconds, ISO 8601 in UTC (such as 2023-11-14T22:13:20.000Z, where the Z means UTC), ISO 8601 with the offset of the zone you choose, a readable date, the HTTP date format used in headers, and a relative time such as "3 hours ago".

To convert the other way, paste an ISO date like 2024-03-01T09:30:00Z, or use the date picker. The picker reads the time in the selected time zone, so you can answer questions like "what timestamp is 9:00 in New York" without doing offset maths. A typed date without a Z or offset is read in your browser's local time zone.

The year 2038 problem

Systems that store timestamps in a signed 32-bit integer run out of room at 03:14:07 UTC on 19 January 2038, when the count passes 2,147,483,647 and wraps to a date in 1901. Modern platforms use 64-bit values, but embedded devices, old database columns and file formats can still be affected, so check the column types in anything expected to outlive 2038.

Frequently Asked Questions

How can I tell seconds from milliseconds?

Count the digits. A current timestamp in seconds has 10 digits, such as 1767225600, and one in milliseconds has 13. JavaScript's Date.now() returns milliseconds, while most Unix tools, databases and JWT claims use seconds. The converter detects the unit automatically.

Do Unix timestamps have a time zone?

No. A Unix timestamp counts seconds since 00:00:00 UTC on 1 January 1970 and means the same instant everywhere. Time zones only matter when you display the timestamp as a local date, which is why storing timestamps in UTC and converting at display time avoids most date bugs.

What about leap seconds?

Unix time ignores them. Every day is treated as exactly 86,400 seconds, and systems handle the occasional leap second by repeating or smearing a second. For almost all application code this has no visible effect.

How do I get the current timestamp in code?

Use Math.floor(Date.now() / 1000) in JavaScript, int(time.time()) in Python, time.Now().Unix() in Go, Instant.now().getEpochSecond() in Java, and date +%s in a Linux or macOS shell.

Related Guides

More in Developer Utilities