Skip to content

Timestamp Converter

Paste an epoch timestamp in seconds, milliseconds, microseconds or nanoseconds and see it in every common format and any time zone. Pick a date to get the timestamp back.

RunsIn browser
Sign-upNone
UploadsZero
Current Unix time
Seconds
—
Milliseconds
—
Timestamp → date
Unit
Date → timestamp

What a Unix timestamp is

A Unix timestamp (also called epoch time or POSIX time) counts the seconds since 00:00:00 UTC on 1 January 1970, ignoring leap seconds. The same moment has the same timestamp everywhere on Earth; time zones only matter when you turn it into a calendar date.

Many systems use finer units. JavaScript and Java use milliseconds, Python's time.time_ns() and Go use nanoseconds, and some databases store microseconds. This tool guesses the unit from the number of digits: up to 11 digits is seconds, 12–14 is milliseconds, 15–17 is microseconds and 18 or more is nanoseconds. Pick a unit yourself if the guess is wrong.

Formats shown

ISO 8601 (2026-01-01T00:00:00.000Z) is the safest format for APIs and logs. RFC 2822 (Thu, 01 Jan 2026 00:00:00 +0000) is used in email headers and RSS. The time zone row uses your browser's copy of the IANA time zone database, so daylight saving rules are applied for the chosen date.

You can also paste a date string such as 2026-03-14 15:09 into the timestamp box; it is read by your browser's date parser. The page link updates as you type, so you can share a specific timestamp.

Questions

How do I tell if a timestamp is in seconds or milliseconds?

Count the digits. A current timestamp in seconds has 10 digits (for example 1767225600); in milliseconds it has 13. This converter detects it automatically and tells you which unit it used.

What is the year 2038 problem?

Systems that store seconds in a signed 32-bit integer overflow at 2147483647, which is 03:14:07 UTC on 19 January 2038. Paste that number above to see it. Modern systems use 64-bit values, which last for billions of years.

Can a Unix timestamp be negative?

Yes. Negative values are moments before 1 January 1970. For example, -86400 is 31 December 1969 00:00 UTC.

How do I get the current timestamp in code?

JavaScript: Math.floor(Date.now() / 1000). Python: int(time.time()). Bash: date +%s. PHP: time(). SQL (PostgreSQL): extract(epoch from now()).

Does a timestamp include the time zone?

No. A timestamp is always relative to UTC. Converting it to a local time needs a time zone, which is why the same number shows different clock times in different zones.