Text & code / MULTIVERTO

ISO 8601 to Unix timestamp

Convert an ISO 8601 date-time with a timezone into Unix seconds.

Live converterYour input stays in this browser. No text is uploaded for conversion.

The file stays in your browser.
Chain tools

Apply each text tool to the previous result. Text workflows ↗

Only the recipe name and tool order are saved in this browser. Your input and results are never saved.

01 / Example

Example

Your input2024-01-01T00:00:00.000Z
Result1704067200

02 / Guide

ISO 8601 to Unix timestamp — How it works

Counting seconds from an ISO date

Convert an ISO 8601 date-time with a timezone into Unix seconds. Use this direction when an API request, scheduled job or database column expects Unix seconds and you have a date-time with an explicit timezone. Supply a complete ISO form such as 2024-01-01T00:00:00Z or a numeric offset. A date without Z or an offset is rejected so the browser’s local timezone cannot silently change the answer.

The stated timezone offset is applied before counting seconds from 1970-01-01T00:00:00Z. The converter shifts the stated clock time by its offset to UTC, then counts from the 1970 epoch. Thus 2024-01-01T02:00:00+02:00 and 2024-01-01T00:00:00Z produce the same seconds. A fractional part of one to three digits is preserved; invalid calendar dates, missing seconds and leap seconds are reported instead of guessed.

Two ways to express one instant

The numeric result counts seconds from the UTC epoch, so two ISO strings with different clock faces can still produce the same number when their offsets identify the same instant. An explicit timezone is required for ISO input. Leap seconds and more than millisecond precision are outside this tool’s scope. An offset describes how clock time differs from UTC at that written instant; it is not the same as a named timezone with daylight-saving rules. The conversion applies the offset supplied in the input and displays UTC in ISO output. A date lacking a timezone is deliberately rejected because interpreting it as local or UTC could change the instant. Leap seconds such as 23:59:60 are outside the standard Date calculation used here. Fractions smaller than a millisecond are also outside scope, and very distant years are limited by the browser date range. Check the unit before pasting a timestamp: milliseconds are one thousand times larger than seconds.

Offsets, precision and calendar pitfalls

A trailing Z explicitly means UTC; a +02:00 offset means the written clock is two hours ahead of UTC and must be shifted back for the count. A bare local date-time is rejected because the missing zone could alter the answer. When preparing an API field, check whether it expects seconds or milliseconds and whether it accepts a decimal fraction. This converter preserves at most millisecond precision and does not invent a named timezone from a numeric offset.

For a concrete check, the example input 2024-01-01T00:00:00.000Z produces 1704067200. For a second check, convert the output in the opposite direction and compare the instants. The written timezone or decimal formatting can differ while the moment remains equal to millisecond precision. Retain the original timezone text when a later audit needs it.

How this conversion transforms the input
ISO 8601 date-time
UTC time scale
Unix seconds

Explore guides

Conversion guides

Explore guides