Unix Timestamp Converter

Seconds since 1970 to UTC date and back, both directions.

Technology and NetUpdated 2026-10-101 min read
Unix Timestamp Converter
Converted
...
ISO 8601...
Milliseconds...

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

  1. Pick the direction first.
  2. For timestamps, enter whole seconds (negatives predate 1970).
  3. For dates, pick the day with UTC time.
  4. Read the conversion first for the answer.
  5. Use millis form for JavaScript Date work.

Formula

Seconds = days since epoch x 86400. Millis = seconds x 1000. Every day counts 86400 s.
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.

  1. Zero seconds after epoch is the epoch itself.
  2. UTC date: 1970-01-01 00:00:00 UTC.
  3. ISO: 1970-01-01T00:00:00Z.
  4. Millis: 0 x 1000 = 0 ms.
  5. Tool shows all three forms.

Reference table

Landmark timestamps
Moment (UTC)SecondsMillis
1970-01-0100
2000-01-01946,684,800946684800000
2026-10-101,791,590,4001791590400000
2038-01-19 03:14:072,147,483,64732 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.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.