Converter

Unix Timestamp Converter

See the current Unix time, convert a timestamp to a date in UTC and your time zone, or turn a date into a timestamp.

How to use it

  1. The top panel shows the current Unix time, updating every second.
  2. Paste a timestamp under Timestamp → date. The unit is detected from its length, or you can choose it.
  3. Under Date → timestamp, pick a date and time in your local time zone or in UTC.
  4. Press Copy next to any value.

What a Unix timestamp is

A Unix timestamp (or epoch time) counts the seconds since 1 January 1970 at 00:00:00 UTC, not counting leap seconds. It is the same everywhere in the world, which makes it a simple, time-zone-free way to store moments in time. Converting it to a local date is done only when showing it to a person.

Seconds or milliseconds?

Digits (today)UnitUsed by
10secondsUnix, PHP time(), Python time.time(), JWT exp
13millisecondsJavaScript Date.now(), Java System.currentTimeMillis()
16microsecondsSome databases and tracing tools
19nanosecondsGo UnixNano(), high-precision logs

Mixing them up is a classic bug: a seconds value read as milliseconds shows a date in January 1970, and a milliseconds value read as seconds lands tens of thousands of years in the future.

Getting the current timestamp in code

// JavaScript (milliseconds → seconds)
Math.floor(Date.now() / 1000)

# Python
import time; int(time.time())

# Shell
date +%s

The year 2038 problem

Systems that store seconds in a signed 32-bit integer overflow on 19 January 2038 at 03:14:07 UTC, when the value passes 2,147,483,647. Modern systems use 64-bit integers, which last for billions of years.

Frequently asked questions

Is a Unix timestamp in UTC?

Yes. It counts seconds since 1970-01-01T00:00:00Z and has no time zone. Time zones only matter when you display it.

How do I tell seconds from milliseconds?

By length. Current timestamps have 10 digits in seconds and 13 in milliseconds. This tool detects the unit automatically.

Can timestamps be negative?

Yes. Negative values are dates before 1970, for example -86400 is 31 December 1969.

Does Unix time include leap seconds?

No. Every day is treated as exactly 86,400 seconds, which keeps calculations simple.

Is my data uploaded?

No. Everything runs with JavaScript inside your browser tab. Nothing you paste is sent to a server or stored.