Timestamp to ISO 8601 Converter (Live Epoch & RFC 3339)

Convert Unix epoch timestamps into standardized ISO 8601 and RFC 3339 date strings in real time. Features bidirectional synchronization, automatic detection of seconds, milliseconds, microseconds, and nanoseconds, and instant formatting for UTC and local time zones.

How Do You Convert a Unix Timestamp to ISO 8601?

To convert a Unix timestamp to ISO 8601, scale the timestamp to milliseconds (multiply seconds by 1,000; divide microseconds by 1,000) and format it as YYYY-MM-DDTHH:mm:ss.sssZ. In this format, T separates the date and time, and Z designates a zero UTC offset (e.g., 1790366400 becomes 2026-09-25T20:00:00.000Z).

Seconds (10 Digits)
Day of Week: Friday
RFC 2822 HTTP Format: Fri, 25 Sep 2026 20:00:00 GMT

The Anatomy of ISO 8601 and RFC 3339

Standardized by the International Organization for Standardization, ISO 8601 (and its internet profile, RFC 3339) structures timestamps from largest to smallest temporal components:

2026-09-25T20:00:00.000Z
└──┬───┘ └──┬───┘   │  │
   │        │       │  └─ Z: UTC Zero Offset (Zulu Time)
   │        │       └──── Millisecond fractions (optional)
   │        └──────────── UTC Time (Hours:Minutes:Seconds)
   └───────────────────── Calendar Date (Year-Month-Day)
  • The 'T' Delimiter: Formally divides the calendar date from the time of day.
  • The 'Z' Designator: Represents zero meridian offset (UTC +00:00), referred to in aviation and military communications as Zulu time.
  • RFC 3339 Strictness: While ISO 8601 allows unpunctuated representations (e.g., 20260925T200000Z), RFC 3339 strictly mandates hyphens and colons for web API compatibility.

Epoch vs. ISO 8601 Milestone Timestamps Matrix

Historical Milestone Unix Seconds ISO 8601 / RFC 3339 (UTC) Technical Relevance
Unix Epoch Zero 0 1970-01-01T00:00:00.000Z The formal start of POSIX machine time.
Y2K Millennium Transition 946684800 2000-01-01T00:00:00.000Z Turn of the 21st century.
Billennium (1 Billion) 1000000000 2001-09-09T01:46:40.000Z Epoch timestamp passed 9 digits.
Year 2038 Overflow Point 2147483647 2038-01-19T03:14:07.000Z Maximum signed 32-bit integer boundary.

Programmatic ISO 8601 Conversion Recipes (Node, Python, Go & SQL)

Code snippets for converting epoch timestamps to ISO 8601 strings across production backends:

1. Node.js & TypeScript:

// Multiply seconds by 1000 for JavaScript Date
const timestampSeconds = 1790366400;
const isoString = new Date(timestampSeconds * 1000).toISOString();

console.log(isoString); // "2026-09-25T20:00:00.000Z"

2. Python (3.11+):

from datetime import datetime, timezone

ts = 1790366400
iso_string = datetime.fromtimestamp(ts, tz=timezone.utc).isoformat()

print(iso_string) // "2026-09-25T20:00:00+00:00"

3. Go (Golang):

package main

import (
	"fmt"
	"time"
)

func main() {
	ts := int64(1790366400)
	isoString := time.Unix(ts, 0).UTC().Format(time.RFC3339)
	fmt.Println(isoString) // "2026-09-25T20:00:00Z"
}

4. SQL (PostgreSQL & MySQL):

-- PostgreSQL (Converts epoch seconds to ISO UTC timestamp):
SELECT TO_CHAR(TO_TIMESTAMP(1790366400) AT TIME ZONE 'UTC', 'YYYY-MM-DD"T"HH24:MI:SS"Z"');

-- MySQL 8.0:
SELECT DATE_FORMAT(FROM_UNIXTIME(1790366400), '%Y-%m-%dT%TZ');

Related Date, Time & Timestamp Utilities:

Frequently Asked Questions

What is the difference between a Unix timestamp and ISO 8601?

A Unix timestamp is an integer measuring elapsed seconds (or milliseconds) since January 1, 1970 UTC, optimized for machine storage and sorting. ISO 8601 is a standardized human-readable string format (YYYY-MM-DDTHH:mm:ss.sssZ) optimized for web APIs and international communication.

How does this tool distinguish between seconds and milliseconds?

The tool automatically evaluates integer digit count. Standard 10-digit integers are processed as seconds, 13-digit integers as milliseconds, 16-digit as microseconds, and 19-digit as nanoseconds, preventing 1970 reset errors.

What does the 'Z' stand for at the end of an ISO 8601 string?

The 'Z' character stands for Zulu time, indicating a zero UTC timezone offset (+00:00). It certifies that the recorded time is aligned with the Prime Meridian.

What is the difference between ISO 8601 and RFC 3339?

RFC 3339 is an official Internet Engineering Task Force (IETF) profile of ISO 8601 designed specifically for web and internet protocols. It standardizes four-digit years, explicit timezone offsets, and the 'T' delimiter.

Can I convert an ISO 8601 string back to a Unix timestamp?

Yes. The tool features bidirectional synchronization. Paste any valid ISO 8601 or RFC 3339 string into the right-hand input to calculate the corresponding integer epoch seconds and milliseconds automatically.