Text & code / MULTIVERTO

Unix timestamp to ISO 8601

Convert Unix seconds since 1970-01-01 UTC into an ISO 8601 UTC date-time.

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 input1704067200
Result2024-01-01T00:00:00.000Z

02 / Guide

Unix timestamp to ISO 8601 — How it works

Turning epoch seconds into a date

Convert Unix seconds since 1970-01-01 UTC into an ISO 8601 UTC date-time. Choose this direction when an API or log contains a Unix timestamp and you need a human-readable UTC date. Enter seconds, optionally with one to three decimal digits for milliseconds. Values before the 1970 epoch are negative. The converter does not assume the number is milliseconds, microseconds or nanoseconds.

Unix time counts seconds since the UTC epoch; fractions of a second are preserved to milliseconds. The example 1704067200 is exactly midnight at the start of 2024 in UTC and becomes 2024-01-01T00:00:00.000Z. The trailing Z states the timezone explicitly; .000 shows zero milliseconds. If an input is roughly thirteen digits long for a present-day date, it is probably milliseconds and must first be divided by one thousand.

Two ways to express one instant

A timestamp of zero maps to the UTC epoch at the start of 1970; a negative second names an earlier instant. A Unix timestamp counts elapsed seconds from 1970-01-01T00:00:00Z. An ISO 8601 date-time names calendar fields and carries a timezone indicator, such as Z for UTC or an offset like +02:00. Both can identify one instant when the timezone is explicit. This converter keeps fractions to three decimal places, so millisecond precision is preserved in either direction. It is useful for API records, audit logs, scheduled jobs and debugging a timestamp copied from a database without relying on the computer’s local timezone.

Offsets, precision and calendar pitfalls

If a source record includes a fractional second, one, two or three decimal digits represent tenths, hundredths or thousandths of a second. The ISO output always ends in Z, so it describes UTC even when the viewer’s local clock shows another time. Keep the original unit with any pasted timestamp: a thirteen-digit millisecond value interpreted as seconds would be far outside the intended date. For a log comparison, put all instants on the same UTC basis before sorting or calculating intervals.

For a concrete check, the example input 1704067200 produces 2024-01-01T00:00:00.000Z. Check the trailing UTC marker before sending the date to a service that might otherwise read it as local time. First confirm which epoch unit the source system records and whether the value is a duration or an absolute timestamp. The ISO result names a UTC instant, so the displayed calendar date can differ from a local date near midnight without changing the underlying moment. Check a known timestamp in the source system and retain its original number for an audit trail. If you send the ISO string to another service, verify that its trailing timezone marker survives parsing. Decimal precision beyond the supported resolution and leap-second conventions require a separate timestamp policy.

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

Explore guides

Conversion guides

Explore guides