Unix Timestamp Converter

Convert Unix timestamps to human-readable dates and back. Live clock, auto-detects seconds and milliseconds. Free, runs in your browser.

Current Unix Timestamp
Loading...

Timestamp to Date

Date to Timestamp

Seconds
1704067200
Milliseconds
1704067200000

What is a Unix timestamp?

A Unix timestamp (also called Epoch time or POSIX time) is the number of seconds that have elapsed since January 1, 1970 00:00:00 UTC, a moment known as the Unix epoch. It is a standard way to represent time in computing, used by databases, APIs, log files, and most programming languages.

How timestamps work

Unix timestamps count upward from the epoch. A timestamp of 0 is exactly midnight on January 1, 1970 UTC. A timestamp of 86400 is exactly one day later (86,400 seconds in a day). Negative timestamps represent dates before the epoch.

Some systems use millisecond timestamps (13 digits instead of 10). JavaScript's Date.now() returns milliseconds. This tool auto-detects whether your input is in seconds or milliseconds.

Common timestamps reference

  • 0 - Jan 1, 1970 00:00:00 UTC (Unix epoch)
  • 1000000000 - Sep 9, 2001 01:46:40 UTC (the "billennium")
  • 1234567890 - Feb 13, 2009 23:31:30 UTC
  • 1700000000 - Nov 14, 2023 22:13:20 UTC
  • 2000000000 - May 18, 2033 03:33:20 UTC
  • 2147483647 - Jan 19, 2038 03:14:07 UTC (32-bit overflow)

The Year 2038 problem

Many older systems store timestamps as a signed 32-bit integer, which maxes out at 2,147,483,647 (January 19, 2038 03:14:07 UTC). After that, the value overflows and wraps to a large negative number, causing the system to interpret the date as December 13, 1901. Modern 64-bit systems handle timestamps far beyond this limit.

Frequently Asked Questions

Is my data sent to a server? No. All conversions run entirely in your browser using JavaScript. Nothing is uploaded.

Does this tool handle time zones? Unix timestamps are always in UTC. The "Local Time" output converts to your browser's local time zone. All other outputs are in UTC.

Can I use negative timestamps? Yes. Negative values represent dates before January 1, 1970. For example, -86400 is December 31, 1969.

How do I get the current timestamp in code? In JavaScript: Math.floor(Date.now() / 1000). In Python: import time; int(time.time()). In PHP: time(). In Bash: date +%s.