Unix Timestamp to ISO 8601 Converter

ISO 8601 is the international standard for representing dates and times as strings (e.g. 2024-01-31T12:00:00Z). It's the format APIs and databases prefer because it sorts alphabetically and contains timezone information. Convert from Unix seconds or milliseconds below.

Example: 1706745600

Unix (seconds)1706745600
Unix (milliseconds)1706745600000
ISO 8601 (UTC)2024-02-01T00:00:00Z
RFC 2822Thu, 01 Feb 2024 00:00:00 GMT
Human ReadableFebruary 1, 2024 12:00:00 AM UTC

Common Pitfall

Note: Unix timestamps are timezone-agnostic (they always represent UTC), but ISO 8601 strings can carry an offset. If you generate ISO 8601 in local time, downstream systems may misinterpret it - always emit ISO 8601 with a `Z` suffix or explicit offset.

Code Examples

Python

from datetime import datetime, timezone
dt = datetime.fromtimestamp(1706745600, tz=timezone.utc)
print(dt.isoformat())

JavaScript

new Date(1706745600 * 1000).toISOString()
// '2024-02-01T00:00:00.000Z'

PHP

echo date('c', 1706745600);
// '2024-02-01T00:00:00+00:00'

Java

Instant.ofEpochSecond(1706745600L).toString()
// '2024-02-01T00:00:00Z'

Go

time.Unix(1706745600, 0).UTC().Format(time.RFC3339)

Related Conversions

Need the full converter? Open the Timestamp Converter →