Unix Timestamp Converter
Convert Unix timestamps in seconds or milliseconds to and from dates, and check UTC and local time.
Features
Convert with seconds or milliseconds specified
Select a unit to convert a timestamp to a date and time. From a date and time, you can get both seconds and milliseconds.
Compare UTC and local time
See the same instant in UTC and in your device's time zone, and copy each value.
How to use
Choose a conversion direction and enter a value
For a timestamp, select seconds or milliseconds and enter an integer. For a date and time, enter ISO 8601 with Z or a UTC offset.
Convert and review the result
Select “Convert” to show results in four formats. “Enter current time” fills the currently selected input field with the current value.
Copy the format you need
Copy seconds, milliseconds, UTC, or your device's local date and time individually.
Background
Elapsed time since 1970
A Unix Timestamp is based on 1970-01-01 00:00:00 UTC. Negative values represent times before then. A timestamp for the same instant does not depend on the time zone.
The difference between seconds and milliseconds
One second is 1,000 milliseconds. Automatically guessing from the number of digits can misread dates in the past or future, so this tool asks you to specify the unit. The seconds result is rounded down to an integer from milliseconds.
A timestamp with milliseconds in an API log
If an API log contains 1700000000123, select Milliseconds and convert it. The UTC result is 2023-11-14T22:13:20.123Z. Enter 1700000000 with Seconds selected to see the same second without the 123 milliseconds. If the log does not name the unit, check the field's documentation before choosing it.
Include the UTC offset in a date and time
Z means UTC; +09:00 means nine hours ahead of UTC. Dates and times without an offset are not accepted. Local date and time follows your browser's time zone setting.
Frequently asked questions
Can I use a fractional timestamp?
Input must be an integer. If you need fractional seconds, select milliseconds and enter an integer value.
How input and results are handled
- Processing
- Input conversion happens in your browser. Input values and results are not sent to the generation API.