Skip to content
codinganthem
All tools/Converters/Unix Timestamp Converter

Unix Timestamp Converter

Convert Unix timestamps to human-readable dates and back, instantly online. Supports local time, UTC, and ISO 8601 — free, no sign-up required.

More
Buy me a coffee

What a Unix timestamp is

A Unix timestamp counts the seconds since 1 January 1970 at 00:00:00 UTC, called the Unix epoch. It's the same number everywhere in the world at the same moment, which is why APIs, databases and logs use it. Paste a timestamp to see it in your local time, in UTC and in ISO 8601, or enter a date to get its timestamp.

Seconds or milliseconds?

A current timestamp in seconds has 10 digits (for example 1767225600). JavaScript's Date.now() and many Java APIs use milliseconds, which have 13 digits (1767225600000). Mixing them up is one of the most common date bugs: a seconds value read as milliseconds lands in January 1970, and the reverse lands tens of thousands of years in the future.

Get the current timestamp in code

JavaScript   Math.floor(Date.now() / 1000)
Python       int(time.time())
PostgreSQL   SELECT EXTRACT(EPOCH FROM now());
MySQL        SELECT UNIX_TIMESTAMP();
Bash         date +%s

Time zones and ISO 8601

A timestamp has no time zone; it's converted to one only when displayed. ISO 8601 strings carry the offset explicitly: 2026-01-01T00:00:00Z is UTC (the Z means zero offset) and 2026-01-01T05:30:00+05:30 is the same moment in India. Store and send times in UTC or as timestamps, and convert to local time only for display.

The year 2038 problem

Systems that store timestamps as a signed 32-bit integer overflow after 2147483647, which is 19 January 2038 at 03:14:07 UTC. Modern systems use 64-bit values, but old databases, file formats and embedded devices may still be affected.

Frequently asked questions

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

Count the digits. A current date is 10 digits in seconds and 13 digits in milliseconds.

Does a Unix timestamp have a time zone?+

No. It counts seconds since the epoch in UTC, so it's the same everywhere. Time zones only apply when you display it as a date.

What is the year 2038 problem?+

Signed 32-bit timestamps run out at 2147483647, which is 19 January 2038, 03:14:07 UTC. Systems still using 32-bit time will wrap around to 1901.

Do Unix timestamps include leap seconds?+

No. Unix time treats every day as exactly 86,400 seconds, so leap seconds aren't counted.