OmniFeed Search

Unix timestamp converter

Paste a Unix timestamp to see its date in UTC and in your time zone, or a date such as 2026-11-06T13:00:00Z to get its timestamp. The converter tells seconds, milliseconds, microseconds, and nanoseconds apart by the size of the number and says in the first row which unit it picked. It runs in your browser; nothing you enter is uploaded.

What a Unix timestamp is

A Unix timestamp is the number of seconds since January 1, 1970, at 00:00:00 UTC, a moment called the Unix epoch. The number is the same everywhere at the same instant, which is why logs, databases, and APIs use it. Time zones only come in when you turn it back into a date. 1700000000 was November 14, 2023, at 22:13:20 UTC.

Unix time ignores leap seconds and counts every day as exactly 86,400 seconds. So when you subtract two timestamps, the elapsed time can be off by up to the 27 leap seconds added since 1972. Dates before 1970 are negative numbers: -86400 is December 31, 1969.

How the converter reads what you type

The converter reads a plain number by its size:

It gets one case wrong: a millisecond timestamp from before March 3, 1973, is small enough to look like seconds.

Your browser's Date.parse reads anything that isn't a number. To say exactly which moment you mean, use ISO 8601 with a Z or an offset, such as 2026-11-06T13:00:00+02:00. Without one, the JavaScript standard treats a date alone, such as 2026-11-06, as midnight UTC, but a date with a time, such as 2026-11-06T13:00, as 13:00 in your own time zone. So if a date string with a time loses its Z, it moves by your offset from UTC.

The Relative row counts a month as 30 days and a year as 365, so treat it as a rough guide: 45 days ago shows as "last month".

The year 2038 problem

Systems that store Unix time as a signed 32-bit integer run out at 2147483647, which is January 19, 2038, at 03:14:07 UTC. One second later the number wraps to -2147483648, which reads as December 13, 1901. 64-bit Linux and macOS use a 64-bit time_t, so they aren't affected. Embedded devices, file formats, and database columns that still store 32 bits are. Paste 2147483648 into the converter to see the first second past the limit.

Getting and converting timestamps elsewhere

date +%s                     # now, in seconds
date -u -d @1700000000       # to a date (GNU/Linux)
date -u -r 1700000000        # to a date (macOS)

In JavaScript, Date.now() returns milliseconds, so divide by 1000 and round down with Math.floor to get seconds. Going the other way, new Date() expects milliseconds too: pass it seconds and you get a date in January 1970. In Python, time.time() returns seconds as a float, and datetime.fromtimestamp(1700000000, tz=timezone.utc) turns one into a date. PostgreSQL has to_timestamp(1700000000) and extract(epoch from now()); MySQL has FROM_UNIXTIME and UNIX_TIMESTAMP().

More in web and systems

Other tools