Unix timestamp converter

Convert explicit seconds or milliseconds to dates and back.

Dates: 1900–2100. Use YYYY-MM-DDTHH:MM:SS, optionally .sss with milliseconds selected. Seconds must be whole. UTC accepts a trailing Z; choose UTC for dates ending in Z. Local repeated clock times use the earlier occurrence; skipped times are rejected.

YOUR ANSWER

UTC date

1970-01-01T00:00:00.000Z

UTC
1970-01-01T00:00:00.000Z
Unix seconds
0
How it’s calculatedCalculated on your device

Unix milliseconds = elapsed milliseconds from 1970-01-01T00:00:00Z. Seconds = milliseconds ÷ 1000.

Displayed values may be rounded. Calculations keep the underlying precision.

Supported UTC years: 1900–2100. Use YYYY-MM-DDTHH:MM:SS with optional milliseconds. UTC mode also accepts a trailing Z. Seconds must be whole. Local time requires input without Z and uses your device zone; repeated times select the earlier occurrence and skipped times are rejected.

The formula, made simple

Translate a Unix timestamp into a date, or enter a date and time to obtain a Unix timestamp. Select the unit explicitly.

Unix time measures elapsed time from 1970-01-01T00:00:00Z. Milliseconds = seconds × 1,000.

A worked example

0 seconds corresponds to 1970-01-01T00:00:00.000Z. 1,000 milliseconds corresponds to one second after that instant.

A few useful answers

Why must I choose seconds or milliseconds?

Guessing from digit count can misinterpret older, negative, or small timestamps. An explicit unit avoids that ambiguity.

Back to calculator ↑