🔧 Programming
✅ 100% Free
⚡ Instant
Unix Timestamp Converter
Convert Unix epoch timestamps to human-readable dates and times, or convert any date back to a Unix timestamp. Shows UTC, local time, ISO 8601, and relative time ("3 hours ago"). Live clock included.
Enter a timestamp or pick a date.
What is a Unix Timestamp?
A Unix timestamp is the number of seconds elapsed since 00:00:00 UTC on 1 January 1970 (the Unix epoch). It is a timezone-independent way to represent any moment in time. JavaScript uses milliseconds (multiply by 1000), while most Unix systems and databases use seconds. The maximum 32-bit Unix timestamp is 2,147,483,647 — the "Year 2038 problem".
Frequently Asked Questions
Unix systems historically used 32-bit integers for timestamps storing seconds. JavaScript uses milliseconds for sub-second precision needed in web apps. When converting: divide
Date.now() by 1000 to get Unix seconds, multiply Unix seconds by 1000 to get JS milliseconds.Systems storing Unix timestamps as signed 32-bit integers will overflow at 03:14:07 UTC on 19 January 2038 (timestamp 2,147,483,647). After that the value wraps to a negative number, breaking date calculations. Modern systems use 64-bit integers which won't overflow for ~292 billion years.
JavaScript:
Math.floor(Date.now()/1000). Python: import time; int(time.time()). PHP: time(). Go: time.Now().Unix(). SQL: UNIX_TIMESTAMP() (MySQL) or EXTRACT(EPOCH FROM NOW()) (PostgreSQL).Copied!