Unix Timestamp Calculator

Convert a UTC date and time to a Unix timestamp in seconds and milliseconds, or a Unix timestamp back to a date.

All dates and times are UTC (Coordinated Universal Time), years 0001–9999 of the Gregorian calendar.

Epoch (seconds)
1767225600
Epoch (milliseconds)
1767225600000
Date and time (ISO 8601, UTC)
2026-01-01T00:00:00Z

How Unix timestamps work

A Unix timestamp counts the number of seconds (or milliseconds) that have elapsed since the Unix epoch — midnight UTC on January 1, 1970. It's a simple integer, making it easy for computers to store, compare, and calculate time differences without dealing with calendars or time zones.

This calculator treats your selected date and time as UTC. If you have a local time in a different time zone, convert it to UTC first (accounting for your UTC offset) before entering it here for an accurate timestamp.

Frequently asked questions

Why does the Unix epoch start on January 1, 1970?

This date was chosen somewhat arbitrarily by early Unix developers as a convenient reference point when the system was being designed in the early 1970s, and it has remained the standard ever since across nearly all computing systems.

What's the difference between epoch seconds and epoch milliseconds?

Epoch seconds is the traditional Unix timestamp format used by many systems and databases. Epoch milliseconds (seconds × 1000) offers finer precision and is commonly used in JavaScript and other systems needing sub-second accuracy.

Will Unix timestamps eventually run out?

Systems storing the timestamp as a signed 32-bit integer will overflow in January 2038 (the "Year 2038 problem"), but modern 64-bit systems store timestamps with far more range, making this a non-issue for current software built on 64-bit integers.

How we verified this calculator

The calculator is checked against 6 reference cases computed independently of its code. Last passed: .

# Inputs Expected result
1
Convert = Date → timestamp
Date and time (UTC) = 2038-01-19T03:14:07
Epoch (seconds): 2147483647
Epoch (milliseconds): 2147483647000
2
Convert = Date → timestamp
Date and time (UTC) = 2024-02-29T12:00
Epoch (seconds): 1709208000
Epoch (milliseconds): 1709208000000
3
Convert = Date → timestamp
Date and time (UTC) = 1969-07-20T20:17:40
Epoch (seconds): -14182940
Epoch (milliseconds): -14182940000
4
Convert = Date → timestamp
Date and time (UTC) = 0050-06-15T12:30:45
Epoch (seconds): -60574994955
Epoch (milliseconds): -60574994955000
5
Convert = Date → timestamp
Date and time (UTC) = 9999-12-31T23:59:59
Epoch (seconds): 253402300799
Epoch (milliseconds): 253402300799000
6
Convert = Timestamp → date
Unix timestamp (seconds) = 1767225600
Epoch (seconds): 1767225600
Epoch (milliseconds): 1767225600000

How we test our calculators →

Also try:

Back to category →