Unix Timestamp to UTC Converter
Unix timestamps are inherently UTC - the count of seconds since 1970-01-01 00:00:00 UTC. Converting to a 'UTC date' means rendering that count in human-readable form without applying any local offset.
Example: 1706745600
| Unix (seconds) | 1706745600 |
|---|---|
| Unix (milliseconds) | 1706745600000 |
| ISO 8601 (UTC) | 2024-02-01T00:00:00Z |
| RFC 2822 | Thu, 01 Feb 2024 00:00:00 GMT |
| Human Readable | February 1, 2024 12:00:00 AM UTC |
Common Pitfall
Note: If your converter shows the wrong hour, you're probably rendering in local time. In Python, use `datetime.utcfromtimestamp()` (or `fromtimestamp(ts, tz=timezone.utc)`); in JS, use `toISOString()` not `toString()`.
Code Examples
Python
from datetime import datetime, timezone
datetime.fromtimestamp(1706745600, tz=timezone.utc).strftime('%B %d, %Y %I:%M %p UTC')
JavaScript
new Date(1706745600 * 1000).toUTCString()
PHP
gmdate('F d, Y g:i A', 1706745600);
Java
Instant.ofEpochSecond(1706745600L).atZone(ZoneOffset.UTC)
.format(DateTimeFormatter.ofPattern("MMMM d, yyyy h:mm a 'UTC'"))
Go
time.Unix(1706745600, 0).UTC().Format("January 2, 2006 3:04 PM")