Developer Tools

Unix Timestamp Converter

Convert Unix seconds or milliseconds to a calendar time in UTC and another time zone, or the other way around.

Unix Timestamp Converter workspace

How to use it

Paste a whole number and choose seconds, milliseconds, or automatic detection. Pick an IANA time zone for the local reading. To go the other way, fill the calendar field and choose To Unix time. The wall time is read in the time zone you selected.

Example

1700000000 seconds is 2023-11-14 22:13:20 UTC. Automatic mode treats integers below 100000000000 as seconds.

Input

1700000000

Result

Unix seconds: 1700000000
Unix milliseconds: 1700000000000
UTC: 2023-11-14 22:13:20 UTC
Detected unit: seconds

How it works

Automatic mode uses seconds when the absolute value has fewer than 12 digits and milliseconds otherwise. Current second timestamps are 10 digits. Current millisecond timestamps are 13 digits. The converter does not guess a time zone from your text. It uses the zone you select.

Common errors

  • The year looks wrong You may have pasted milliseconds while the unit was set to seconds. Switch the unit or use automatic detection.
  • A local time was rejected The civil time does not exist in that zone, often because of a daylight-saving gap.
  • A date before 1973 in milliseconds was read as seconds Values under 100000000000 are seconds unless you select milliseconds.

Limitations

Leap seconds are not represented in Unix time. Ambiguous fall-back times follow the platform time-zone database. The supported numeric range stops well before a 16-digit value.

Privacy

The text you paste is processed in your browser. PepsTools does not receive it, store it, or send it to another service.

Questions

Which time zone database is used?

The IANA time zones provided by your browser for the interactive tool, and PHP’s time-zone database for the tested conversion logic.