Unix Timestamp Converter

Convert between Unix timestamps and dates. Seconds or milliseconds are detected automatically.

Current Unix timestamp

Seconds0
Milliseconds0

Timestamp → date

Unit
Local time
UTC
ISO 8601 (UTC)
ISO 8601 (local)
Relative

Date → timestamp

Time zone of the date
Seconds
Milliseconds

Everything you enter is processed inside this browser and is never sent to a server.

How to use it

What a Unix timestamp is

A Unix timestamp, also called Unix time, POSIX time or epoch time, counts the seconds since 00:00:00 UTC on January 1, 1970. Because it is a single number that does not depend on time zones, it is used everywhere in software: databases, logs, APIs and file systems.

For example, 1700000000 is November 14, 2023 at 22:13:20 UTC.

Automatic unit detection

Different systems store timestamps in seconds, milliseconds, microseconds or nanoseconds. “Auto-detect” chooses the unit from the number of digits before the decimal point:

DigitsUnitTypical source
Up to 11SecondsUnix tools, PHP, Python’s time.time()
12 to 14MillisecondsJavaScript’s Date.now(), Java’s System.currentTimeMillis()
15 to 17MicrosecondsSome databases and logging systems
18 or moreNanosecondsGo’s UnixNano() and similar

Dates before March 1973 written in milliseconds (or finer units) have fewer digits and can be detected as the wrong unit. Pick the unit manually for those.

Frequently asked questions

Which time zone is “local time”?

The time zone set on your computer or phone. Its name, such as America/New_York, is shown next to the label.

Can I enter negative values?

Yes. Negative timestamps are dates before 1970. For example, -1 is December 31, 1969 at 23:59:59 UTC.

What is the year 2038 problem?

Systems that store Unix time as a signed 32-bit integer overflow after 03:14:07 UTC on January 19, 2038, and can no longer represent the time correctly. This tool does not have that limit.

Are leap seconds included?

No. By definition, Unix time does not count leap seconds, and neither does this tool.