Unix TimestampConverter

Turn epoch time into a human date in UTC and your local time zone, or convert any date to a Unix timestamp. Seconds and milliseconds are detected automatically.

Epoch milestones
Epoch start
Jan 1, 1970 UTC
1,767,225,600
Jan 1, 2026
1,800,000,000
Jan 15, 2027
32-bit limit
Jan 19, 2038

Convert Epoch Time

The top card shows the current Unix time. Paste a timestamp to decode it, or pick a date to encode it.

Current Unix time

Seconds–
Milliseconds–

Timestamp to date

Date and Time (UTC)
–
–Your Local Time
–ISO 8601
–Relative

Date to timestamp

Unix Timestamp (seconds)
–
–Milliseconds
–ISO 8601 (UTC)
–Hexadecimal
Quick answer

What is a Unix timestamp?

A Unix timestamp is the number of seconds since 00:00:00 UTC on January 1, 1970, known as the Unix epoch. Leap seconds are not counted. For example, 1767225600 is midnight UTC on January 1, 2026. JavaScript and many APIs use milliseconds instead, which adds three digits.

Epoch start
Jan 1, 1970 UTC
1,767,225,600
Jan 1, 2026
1,800,000,000
Jan 15, 2027
32-bit limit
Jan 19, 2038

Formulas checked by the TimeDuration.net team · Updated November 2026

How to Use the Unix Timestamp Converter

  1. 01

    Paste a timestamp

    Enter epoch seconds (10 digits today) or milliseconds (13 digits).

  2. 02

    Read the date

    See it in UTC, your local time zone, ISO 8601 and relative time.

  3. 03

    Encode a date

    Pick a date and time, choose UTC or local, and copy the Unix timestamp.

  4. 04

    Grab the current time

    Press Convert this to decode the live epoch value.

Seconds, Milliseconds, Microseconds: Which Timestamp Is It?

UnitDigits todayExample (Jan 1, 2026 UTC)Used by
Seconds101767225600Unix, PHP, Python time.time(), most databases
Milliseconds131767225600000JavaScript Date.now(), Java, many JSON APIs
Microseconds161767225600000000PostgreSQL internals, some logs
Nanoseconds191767225600000000000Go time.UnixNano(), high-precision tracing

This converter treats any value of 100 billion or more as milliseconds. Pick the unit by hand if you work with dates far in the past or future.

Get and Convert Unix Time in Code

LanguageCurrent timestampTimestamp to date
JavaScriptMath.floor(Date.now() / 1000)new Date(ts * 1000).toISOString()
Pythonint(time.time())datetime.fromtimestamp(ts, tz=timezone.utc)
PHPtime()date("c", $ts)
SQL (MySQL)UNIX_TIMESTAMP()FROM_UNIXTIME(ts)
Bashdate +%sdate -u -d @ts
Excel–=A2/86400 + DATE(1970,1,1)

What Is the Year 2038 Problem?

Systems that store Unix time in a signed 32-bit integer will overflow at 03:14:07 UTC on January 19, 2038. The largest value that fits is 2,147,483,647. One second later the number wraps to a negative value, which old software reads as December 13, 1901.

Modern operating systems, databases and languages now use 64-bit time, which pushes the limit billions of years out. The risk sits mainly in older embedded devices, file formats and databases that still use 32-bit fields.

Epoch milestones

TimestampDate (UTC)
0Jan 1, 1970 00:00:00
946684800Jan 1, 2000 00:00:00
1000000000Sep 9, 2001 01:46:40
1767225600Jan 1, 2026 00:00:00
1800000000Jan 15, 2027 08:00:00
2000000000May 18, 2033 03:33:20
2147483647Jan 19, 2038 03:14:07

Unix Time, Leap Seconds and Day Counts

Unix time assumes every day has exactly 86,400 seconds. When a leap second is added, the count simply repeats or smears a second, so Unix time is not a perfect count of elapsed SI seconds. For everyday dates this makes no difference.

Because days are a fixed 86,400 seconds, you can get whole days between two timestamps by dividing the difference by 86,400. For calendar-aware results, use the Time Duration Calculator or the Days Between Dates Calculator. To turn seconds into hours or weeks, use the Time Units Converter, and for the astronomer’s day count see the Julian Day in the Day of the Year Calculator.

Who Uses an Epoch Converter?

Developers

Decode API fields and database columns.

Log analysis

Read server and app logs in human time.

Security teams

Line up events across systems in UTC.

Data analysts

Convert epoch columns before charting.

Token debugging

Check exp and iat claims in JWTs.

Students

Learn how computers store time.

Unix Timestamp FAQ

The top card shows it live in seconds and milliseconds. It increases by one every second.

Paste it into the Timestamp to date card. Mathematically, multiply seconds by 1,000 and pass the value to a date function, or divide by 86,400 and add it to January 1, 1970.

Yes. A Unix timestamp is the same everywhere in the world. Time zones only matter when you display it as a local date and time.

It is in milliseconds. Divide by 1,000 to get seconds. JavaScript and Java use milliseconds by default.

Yes. Negative values are dates before January 1, 1970. For example, −86400 is December 31, 1969.

No. Unix time treats every day as exactly 86,400 seconds and ignores leap seconds.