Unix Timestamp Converter & In-Depth Guide
A Unix timestamp (frequently referred to as POSIX time or Epoch time) is the universal mechanism computers, databases, and network protocols use to track time. Rather than dealing with complex strings involving day names, months, leap days, and localized timezones, systems represent points in time as a single, sequential integer.
What Is a Timestamp?
A timestamp is an encoded record identifying when a specific event took place. In everyday software engineering, timestamps serve as immutable digital receipts for transaction logs, file modifications, message deliveries, cryptographic signatures, and audit trails.
What Is Unix Epoch Time?
The Unix Epoch begins precisely at 00:00:00 UTC on Thursday, January 1, 1970. Every second since that exact moment increments the Unix timestamp by 1. For instance, the timestamp 1704067200 marks midnight UTC on January 1, 2024.
Key Milestones in Unix Time:
- 0: Thursday, January 1, 1970 00:00:00 UTC (The Unix Epoch).
- 1,000,000,000: September 9, 2001 01:46:40 UTC (Celebrated as "1G Unix Time").
- 2,000,000,000: May 18, 2033 03:33:20 UTC.
- 2,147,483,647 (Y2K38): January 19, 2038 03:14:07 UTC (The maximum signed 32-bit integer limit, resolved by modern 64-bit timestamps).
Convert Unix Timestamp to Date
Use TimestampEasy to convert a Unix timestamp into a readable date and time. Enter a timestamp in seconds or milliseconds above and get the corresponding local time, UTC time, and ISO 8601 date instantly.
Quick examples
- 0 → January 1, 1970 00:00:00 UTC
- 1704067200 → January 1, 2024 00:00:00 UTC
- 1767225600 → January 1, 2026 00:00:00 UTC
Convert Date to Unix Timestamp
To convert a date and time into Unix time, choose your date, time, and timezone in the Date to Timestamp tab. The converter returns both Unix timestamp seconds and milliseconds so you can use the result in APIs, databases, logs, JavaScript, Python, PHP, and other software.
How to Convert a Timestamp to a Date
Converting a raw integer timestamp to a readable calendar date is straightforward:
- Determine the unit: Check if your timestamp has 10 digits (seconds) or 13 digits (milliseconds).
- Convert to milliseconds: If in seconds, multiply the integer by 1,000.
- Construct a datetime object: Feed the millisecond integer into your programming language's datetime constructor (e.g.
new Date(ms) in JavaScript).
- Format for your target timezone: Apply your locale or UTC formatting rules to render the year, month, day, hour, minute, and second.
How to Convert a Date to a Timestamp
To convert a calendar date back to Unix time:
- Specify the year, month, day, and time.
- Identify the associated timezone (e.g. UTC, America/New_York, Asia/Kolkata).
- Calculate the total seconds between that datetime and January 1, 1970 00:00:00 UTC.
Seconds vs. Milliseconds: The Critical Difference
The most frequent pitfall in software engineering is mixing seconds and milliseconds:
← Swipe horizontally to view full table →
| Format |
Digit Length |
Example (Jan 1, 2026 UTC) |
Common Environments |
| Seconds |
10 digits |
1767225600 |
Linux kernel, Python (time.time()), PHP, MySQL, PostgreSQL |
| Milliseconds |
13 digits |
1767225600000 |
JavaScript (Date.now()), Java (System.currentTimeMillis()), MongoDB |
| Microseconds |
16 digits |
1767225600000000 |
High-frequency trading, Linux high-resolution clocks |
| Nanoseconds |
19 digits |
1767225600000000000 |
Go (time.Now().UnixNano()), Rust, C++ Chrono |