Unix Timestamp Converter
Instantly decode epoch time to human dates, or encode dates back. Copy-ready ISO 8601, RFC 2822, and SQL formats.
Unix Timestamp Converter
What is Unix Timestamp?
A Unix timestamp counts seconds since the "Unix Epoch" ā January 1, 1970, 00:00:00 UTC. Why this date? It was around when Unix was being developed at Bell Labs, and engineers needed a simple starting point. This single number makes dates incredibly easy to compare, sort, and calculate across any programming language.
Seconds (10 digits)
The classic format. Used by PHP, Python, Ruby, Unix shell commands, and most databases.
1705331400ā 136 years of range
Milliseconds (13 digits)
Extra precision for modern apps. Used by JavaScript, Java, and many APIs.
17053314000001000Ć more precise
š Fun Facts About Unix Time
Epoch Parties š
Developers celebrate cool timestamps! 1 billion was Sep 9, 2001.1234567890 was Feb 13, 2009 at 23:31:30 UTC ā parties were thrown worldwide!
Y2K38 Bug š
On Jan 19, 2038, 32-bit systems will overflow and think it's 1901! 64-bit systems are safe for another 292 billion years.
Negative Timestamps āŖ
Timestamps can be negative! -1 is Dec 31, 1969 at 23:59:59 UTC. You can represent dates back to 1901 on 32-bit systems.
Always UTC š
1704067200 is the same moment everywhere on Earth. NYC sees it as Jan 1, 2024 00:00 UTC, while Tokyo sees Jan 1, 2024 09:00 JST.
Common Date Formats
ISO 8601
2024-01-15T14:30:00ZInternational standard. The āZā means UTC.
RFC 2822
Mon, 15 Jan 2024 14:30:00 +0000Used in email headers and HTTP.
SQL Timestamp
2024-01-15 14:30:00Standard database format.
RFC 3339
2024-01-15T14:30:00+00:00Profile of ISO 8601 for internet protocols.
Get Current Timestamp - Code Examples
Copy-paste ready snippets for your favorite language:
// JavaScript (milliseconds by default) Date.now() // 1704067200000 (ms) Math.floor(Date.now() / 1000) // 1704067200 (sec) new Date().getTime() // 1704067200000 (ms) # Python import time int(time.time()) # 1704067200 (sec) time.time_ns() // 1e6 # milliseconds // PHP time(); // 1704067200 (sec) round(microtime(true) * 1000); // milliseconds // Go time.Now().Unix() // seconds time.Now().UnixMilli() // milliseconds // Bash / Terminal date +%s # seconds date +%s%3N # milliseconds // C# / .NET DateTimeOffset.UtcNow.ToUnixTimeSeconds() DateTimeOffset.UtcNow.ToUnixTimeMilliseconds()