SanWebCorner · Developer Tools

Unix Timestamp Converter — Seconds & Milliseconds

Convert a Unix timestamp to a readable date, or turn a calendar date into Unix seconds and milliseconds. Select the unit explicitly and interpret entered date/time as UTC or your browser’s local timezone.

Free · no signupLocal browser processingCopy & download

How to convert a Unix timestamp

  1. Enter the timestamp and select Seconds or Milliseconds.
  2. Select Timestamp to date to see UTC ISO output, browser local time and both numeric units.
  3. For the reverse conversion, enter YYYY-MM-DD HH:mm:ss.SSS, choose UTC or browser local time, then select Date to timestamp.
  4. Copy or download the result. Use current time adds the current instant using the selected numeric unit.

Seconds versus milliseconds

A Unix timestamp describes elapsed time relative to 1970-01-01T00:00:00Z. This tool never guesses the unit from the number of digits. The same value can mean different dates depending on the chosen unit.

0 seconds = 1970-01-01T00:00:00.000Z
1000 milliseconds = 1970-01-01T00:00:01.000Z
-0.001 seconds = 1969-12-31T23:59:59.999Z

Seconds may include up to three decimal places; milliseconds must be whole numbers. Decimal conversion uses exact integer arithmetic before creating a Date, avoiding floating-point rounding during the unit conversion. Timestamp input must remain within JavaScript Date’s supported range.

Timezone and daylight-saving behavior

Numeric timestamps identify an instant independently of the display timezone. The timezone selection applies only to the calendar date/time you enter. UTC is predictable across devices; browser local time follows the device’s configured timezone and timezone data.

The tool validates calendar fields, rejects dates such as February 30 and rejects local times skipped during daylight-saving changes. If a local wall time occurs twice when clocks move back, JavaScript chooses the earlier occurrence. Use UTC when you need an unambiguous conversion. The input accepts years 0001–9999 and no timezone suffix; it does not accept ambiguous natural-language dates.

MDN explains why non-standard strings passed to Date.parse() can be implementation-dependent. This tool parses the documented numeric calendar fields instead of accepting arbitrary date strings.

Frequently asked questions

Why does the same timestamp show different local times?

The instant and UTC ISO value stay the same. Browser local output changes with the device’s timezone.

Does a negative timestamp work?

Yes. Negative values represent instants before the Unix epoch. Fractional seconds preserve millisecond precision.

Does this handle leap seconds?

No. It follows JavaScript Date’s time model, which does not represent a leap-second value such as 23:59:60.

Is my date sent to a server?

The converter component runs locally and does not save input history. Normal site services, including advertising and analytics, are still present.

Browse all developer tools