Tech & Digital
Unix Timestamp Converter
Convert Unix epoch seconds or milliseconds to a date, and back.
What a Unix timestamp is
Computers often store time as the number of seconds elapsed since 1 January 1970 at 00:00:00 UTC, the Unix epoch. This single number is independent of time zones and daylight saving, easy to compare and sort, and used by databases, log files, APIs, JavaScript and most programming languages. JavaScript and many web APIs use milliseconds instead of seconds, which gives 13-digit numbers.
Paste a timestamp to see it as an ISO 8601 date in UTC and as readable text, or paste a date to get its timestamp. The converter recognises 10-digit second values and 13-digit millisecond values automatically.
The year 2038 and other limits
Systems that store Unix time in a signed 32-bit integer overflow on 19 January 2038 at 03:14:07 UTC, similar to the Y2K problem; modern systems use 64-bit values that last billions of years. Leap seconds are not counted in Unix time, so each day is exactly 86,400 seconds.
Formula & method
Seconds since 1970-01-01 00:00:00 UTCWorked example
Convert 1 January 2026 00:00 UTC to a timestamp
- Days from 1970-01-01 to 2026-01-01 = 20,454
- Seconds = 20,454 × 86,400
Answer: 1767225600 seconds (1767225600000 in milliseconds).
Frequently asked questions
Milliseconds?
Values with 13 digits are read as milliseconds.
Is a Unix timestamp in UTC?
Yes. It counts seconds since the epoch in UTC, regardless of where the computer is.
How do I tell seconds from milliseconds?
Current timestamps in seconds have 10 digits; in milliseconds they have 13.
Can timestamps be negative?
Yes. Negative values represent dates before 1970.
What is ISO 8601?
The international date format, such as 2026-01-01T00:00:00Z, where Z means UTC.
What happens in 2038?
32-bit signed timestamps overflow; 64-bit systems are unaffected.
How do I get the current timestamp?
In most languages: Date.now() in JavaScript, time() in PHP and Python's time.time().
Why do developers use timestamps instead of dates?
A single number avoids time-zone and formatting ambiguity, sorts correctly and makes date arithmetic simple — subtracting two timestamps gives the seconds between them.
How do I convert a timestamp in Excel?
Use =A1/86400+DATE(1970,1,1) and format the cell as a date; the result is in UTC.