ISO 8601 to Unix
Paste an ISO 8601 date and time, such as 2026-09-20T12:30:00Z, and get the Unix timestamp in seconds and milliseconds.
What is ISO 8601?
ISO 8601 is the international standard for writing dates and times in a form that sorts correctly and cannot be misread as month/day or day/month. A full example is 2026-09-20T12:30:00Z: year, month, day, the letter T, hours, minutes and seconds, and a time zone designator.
Time zone designators
The letter Z means UTC. An offset such as +02:00 or -05:00 says how far the local time is from UTC. If a string has no designator, the standard treats it as local time, so this tool lets you pick which zone to assume (UTC by default). A date without a time, like 2026-09-20, is read as midnight in that zone.
Want the background? Read our comprehensive guide: ISO 8601 Date and Time Format.
How to use this tool
- Paste the ISO 8601 string, or select Use example.
- If the string has no Z or offset, choose the time zone to assume. UTC is the default.
- Select Convert to Unix.
- Copy the seconds or milliseconds value.
Examples
Strings with an offset or Z do not depend on the assumed zone.
UTC time (Z)
2026-09-20T12:30:00Z
- Unix seconds
- 1789907400
- Unix milliseconds
- 1789907400000
The same instant with an offset
2026-09-20T14:30:00+02:00
- Unix seconds
- 1789907400
- Unix milliseconds
- 1789907400000
This is the same instant as the string above.
With fractional seconds
2026-09-20T12:30:00.250Z
- Unix seconds
- 1789907400
- Unix milliseconds
- 1789907400250
A date without a time
2026-09-20
- Unix seconds
- 1789862400
- Unix milliseconds
- 1789862400000
Read as midnight in the assumed zone, UTC by default.
Frequently Asked Questions
Which ISO 8601 formats are supported?
What happens when the string has no time zone?
Why is 2026-02-30 rejected?
Is 2026-09-20T12:30:00Z the same as 2026-09-20T14:30:00+02:00?
Related tools
- Unix to ISO 8601Get an ISO 8601 string in UTC or with your local offset.
- Date to TimestampConvert a date, time and time zone into a Unix timestamp.
- Timezone ConverterConvert time between zones and compare cities side by side.
- Unix Timestamp ConverterTurn a Unix timestamp into UTC, local time and ISO 8601.