Unix to ISO 8601
Convert a Unix timestamp to an ISO 8601 string, once in UTC and once with your local UTC offset.
Unix timestamp to ISO 8601
APIs, JSON documents and databases usually expect dates as ISO 8601 strings. This page turns a Unix timestamp into that format, once in UTC ending in Z and once with your local UTC offset, so you can copy whichever your code or API needs.
UTC or local offset?
Use the UTC form, which ends in Z, for storage, logs and API payloads: it is unambiguous and sorts alphabetically in time order. Use the offset form when a person needs to read local time while the exact instant stays recoverable, for example 2026-09-21T15:13:20.000+01:00.
Want the background? Read our comprehensive guide: ISO 8601 Date and Time Format.
How to use this tool
- Enter the Unix timestamp.
- Leave Unit on Auto, or choose Seconds or Milliseconds.
- Select Convert to ISO 8601.
- Copy the UTC or local-offset string.
Examples
One instant written three ways.
UTC
1790000000123 (milliseconds)
- ISO 8601
- 2026-09-21T14:13:20.123Z
Tokyo (UTC+09:00)
1790000000123 (milliseconds)
- ISO 8601
- 2026-09-21T23:13:20.123+09:00
New York (daylight saving time)
1790000000123 (milliseconds)
- ISO 8601
- 2026-09-21T10:13:20.123-04:00
Same instant, different offset.
Frequently Asked Questions
How do I create an ISO 8601 string in JavaScript?
How do I create one in Python?
Why does the ISO string end in Z?
Are milliseconds always included?
Related tools
- ISO 8601 to UnixTurn an ISO 8601 date-time string into a Unix timestamp.
- Unix Timestamp ConverterTurn a Unix timestamp into UTC, local time and ISO 8601.
- Timestamp to DateReadable date, weekday, day of year and ISO week from a timestamp.
- Timezone ConverterConvert time between zones and compare cities side by side.