Unix Timestamp Converter
Convert epoch timestamps to human-readable dates — and back — with full timezone support, live clock, and developer code snippets.
Convert Timestamp to Date
World Timezones
Convert Date to Unix Timestamp
Time Unit Converter
Enter a value in any field to convert across all units instantly.
Recent Conversions
Unix Timestamp Cheat Sheet
Common reference values developers reach for every day.
1970-01-01 00:00:00 UTC
2001-09-09 01:46:40 UTC
2038-01-19 03:14:07 UTC
e.g. 1700000000
e.g. 1700000000000
86,400
31,536,000
YYYY-MM-DDTHH:mm:ssZ
Developer Code Snippets
Ready-to-paste code for common Unix timestamp operations.
// Current timestamp (seconds)
const nowSec = Math.floor(Date.now() / 1000);
// Current timestamp (milliseconds)
const nowMs = Date.now();
// Unix timestamp → Date object
const date = new Date(nowSec * 1000);
// Date object → Unix timestamp
const ts = Math.floor(new Date('2024-01-01T00:00:00Z').getTime() / 1000);
// Format a timestamp to local string
const local = new Date(nowMs).toLocaleString('en-US', { timeZone: 'America/New_York' });
// ISO 8601 string
const iso = new Date(nowMs).toISOString();
// Current Unix timestamp (seconds)
$ts = time();
// Current timestamp (milliseconds)
$ms = (int)(microtime(true) * 1000);
// Unix timestamp → formatted date (UTC)
$utc = gmdate('Y-m-d H:i:s', $ts);
// Unix timestamp → formatted date (specific TZ)
$dt = new DateTime('@' . $ts);
$dt->setTimezone(new DateTimeZone('America/New_York'));
$str = $dt->format('Y-m-d H:i:s T');
// Date string → Unix timestamp
$ts2 = strtotime('2024-01-01 00:00:00');
// ISO 8601
$iso = $dt->format(DateTime::ATOM);
import time
from datetime import datetime, timezone
# Current Unix timestamp (seconds)
ts = int(time.time())
# Timestamp → UTC datetime
dt_utc = datetime.fromtimestamp(ts, tz=timezone.utc)
# Timestamp → local datetime
dt_local = datetime.fromtimestamp(ts)
# Date string → Unix timestamp
ts2 = int(datetime.fromisoformat('2024-01-01T00:00:00+00:00').timestamp())
# Format as ISO 8601
iso = dt_utc.isoformat()
# With pytz for timezone support
import pytz
ny = pytz.timezone('America/New_York')
dt_ny = datetime.fromtimestamp(ts, tz=ny)
# Current Unix timestamp
date +%s
# Current timestamp in milliseconds
date +%s%3N
# Timestamp → human-readable (UTC)
date -ud @1700000000
# Timestamp → human-readable (local TZ)
date -d @1700000000
# Date string → Unix timestamp
date -d '2024-01-01 00:00:00 UTC' +%s
# macOS variant
date -r 1700000000
gdate -d @1700000000 # GNU date via brew
Frequently Asked Questions
Everything you need to know about Unix timestamps and epoch conversion.
What is a Unix timestamp?
What is the difference between seconds and millisecond timestamps?
What is the Unix epoch (time zero)?
What is the Year 2038 problem?
How do I convert a timestamp to a specific timezone?
What does ISO 8601 mean?
More Free Online Tools
Simple tools. Surgical fixes. Zero friction.
Amazon Connect CCP Log Parser
Parse Amazon Connect CCP logs into structured, searchable diagnostics.
OpenAmazon Connect Agent Workstation Validator
Pre-flight check for Amazon Connect softphone agents.
OpenAmazon Connect Pricing Calculator
Instantly estimate monthly AWS Connect costs — voice, chat, email, campaigns, telephony & more.
OpenConnect CloudWatch Log Analyzer
Drop any Amazon Connect CloudWatch log and get a rich visual breakdown.
Open