Unix Timestamp Converter
Seconds since 1970 to UTC date and back, both directions.
What it does
Unix timestamps compress any moment into one integer: seconds since the epoch at the start of 1970 UTC. Logs, databases, and APIs trade these numbers because they sort and subtract without calendars.
The tool above converts both directions in UTC. Timestamps become readable dates with ISO and millisecond forms; dates with times become epoch seconds the same way.
The default zero reads 1970-01-01 00:00:00 UTC exactly. Flipping to October 10 2026 midnight returns 1791590400 seconds (1791590400000 ms for JavaScript).
The epoch follows POSIX time definitions with MDN Date references matching the milliseconds convention. Both ignore leap seconds, counting every day as exactly 86400 seconds.
How to use
- Pick the direction first.
- For timestamps, enter whole seconds (negatives predate 1970).
- For dates, pick the day with UTC time.
- Read the conversion first for the answer.
- Use millis form for JavaScript Date work.
Formula
- epoch
- 1970-01-01 00:00:00 UTC, the zero point.
- 86400
- Seconds per day, leap seconds ignored.
- x1000
- Milliseconds for Date constructors.
UTC throughout; local zones shift wall clocks but never the count. Range covers year 0 to 9999 inside JavaScript Date precision.
Worked example
Example: 0 to date
Timestamp 0, direction to date.
- Zero seconds after epoch is the epoch itself.
- UTC date: 1970-01-01 00:00:00 UTC.
- ISO: 1970-01-01T00:00:00Z.
- Millis: 0 x 1000 = 0 ms.
- Tool shows all three forms.
Reference table
| Moment (UTC) | Seconds | Millis |
|---|---|---|
| 1970-01-01 | 0 | 0 |
| 2000-01-01 | 946,684,800 | 946684800000 |
| 2026-10-10 | 1,791,590,400 | 1791590400000 |
| 2038-01-19 03:14:07 | 2,147,483,647 | 32 bit max |
Limits
- UTC only; local display needs zone math.
- Leap seconds ignored by definition.
- Year 0 to 9999 inside Date precision.
- Fractional seconds round to whole millis.
Common mistakes
- Feeding millis where seconds belong (1000x off).
- Reading local midnight as UTC midnight.
- Forgetting months start at zero in code.
- Assuming leap seconds count in the number.
- Storing stamps in 32 bit past 2038.
Try it yourself
Quick checks. Answers sit tucked under each question.
2000-01-01 UTC?
946,684,800 s.
1000000000 means?
2001-09-09 01:46:40 UTC.
Millis for 1791590400?
1791590400000 ms.
Questions
What is Unix time?
Seconds since 1970-01-01 00:00:00 UTC. Zero is that moment.
Seconds or millis?
APIs trade seconds; JavaScript Dates take millis (x1000).
What is 1791590400?
2026-10-10 00:00:00 UTC.
Negative timestamps?
Moments before 1970, down to year 0 here.
2038 problem?
Signed 32 bit seconds overflow Jan 19 2038; 64 bit continues.
UTC or local?
This page computes UTC. Convert zones after, never before.