Enter a Unix timestamp to convert it to a readable date, or pick a date to get its timestamp.
Current Unix Time
-
-
Unix Timestamp → Human Readable
-
Human Readable → Unix Timestamp
-
Quick timestamps:
Get the current Unix timestamp or convert between timestamps and dates in your programming language.
-
-
Notable Unix Timestamps
Timestamp
Date (UTC)
Description
Time Units in Seconds
Unit
Seconds
Advertisement
About This Tool
This tool converts between Unix timestamps and human-readable dates in both directions. A Unix timestamp (also called Epoch time or POSIX time) represents the number of seconds that have elapsed since January 1, 1970, at 00:00:00 UTC — a moment known as the Unix Epoch. This numbering system was chosen by the creators of Unix at Bell Labs because it provided a simple, timezone-independent way to represent any moment in time as a single integer.
Timestamps are used extensively in programming, databases, log files, APIs, and system administration. The tool supports both standard timestamps (seconds) and millisecond timestamps (used by JavaScript, Java, and many modern APIs). You can convert any date from the Gregorian calendar to its Unix timestamp equivalent, or decode any timestamp to see the corresponding date, time, day of week, and timezone offset. The current Unix timestamp is displayed and updates in real time.
Understanding timestamps is essential for debugging application logs, working with APIs, parsing database records, and synchronizing systems across different platforms. All conversions happen locally in your browser using JavaScript's Date API.
The History of Unix Time
The Unix operating system was created at Bell Labs by Ken Thompson and Dennis Ritchie in 1969-1970. They needed a simple way to track time, and chose midnight UTC on January 1, 1970, as the starting point — known as the "epoch." The choice was pragmatic: it was a recent, round date that minimized storage for contemporary timestamps. The original Unix time used a signed 32-bit integer, counting seconds since the epoch. This creates the "Year 2038 Problem" (Y2K38): at 03:14:07 UTC on January 19, 2038, the 32-bit counter will overflow and wrap to a large negative number, potentially representing a date in December 1901. Most modern systems have migrated to 64-bit timestamps, which won't overflow for approximately 292 billion years. Before Unix time became the standard, computers used various proprietary time representations — IBM mainframes counted days since January 1, 1900, while VMS used 100-nanosecond intervals since November 17, 1858 (the Modified Julian Date epoch). Unix time's simplicity made it the de facto standard for nearly all modern computing, from smartphones to satellites.
How to Use
Enter a Unix timestamp (seconds or milliseconds) to convert to a readable date, or select a date/time to get its timestamp.
View the conversion showing local time, UTC, ISO 8601 format, and both seconds and milliseconds representations.
Copy the timestamp or readable date with one click. Share a link to your specific conversion for debugging or documentation.
Methodology
The converter uses JavaScript's Date object, which internally stores time as milliseconds since the Unix Epoch (January 1, 1970, 00:00:00 UTC). For timestamp-to-date conversion, the input is multiplied by 1,000 (if in seconds) to create a Date object, then formatted using Intl.DateTimeFormat for locale-appropriate display.
For date-to-timestamp conversion, the input date components are parsed and a Date object is constructed, then getTime() returns the millisecond timestamp, divided by 1,000 for the standard Unix format. The tool automatically detects whether an input timestamp is in seconds (10 digits, e.g., 1700000000) or milliseconds (13 digits, e.g., 1700000000000). Timezone handling uses the IANA timezone database — you can view any timestamp in UTC or your local timezone.
Negative timestamps represent dates before January 1, 1970 — for example, -86400 represents December 31, 1969.
The converted date shows year, month, day, hour, minute, second, and the day of the week. Times are displayed in both UTC and your local timezone for easy comparison.
The UTC offset (e.g., +05:30 or -08:00) indicates the difference between displayed local time and UTC. When converting dates to timestamps, remember that the same calendar date and time produce different timestamps depending on the timezone — "January 1, 2024, 00:00:00" in New York (UTC-5) is timestamp 1704085200, while the same moment in London (UTC+0) is 1704067200, a difference of 18,000 seconds (5 hours).
Millisecond timestamps are commonly used by JavaScript (Date.now()), while seconds are standard in Unix/Linux systems, Python, and PHP.
Timestamp 0 = January 1, 1970, 00:00:00 UTC (the epoch). Timestamp 1000000000 = September 9, 2001, 01:46:40 UTC. Timestamp 1700000000 = November 14, 2023, 22:13:20 UTC. Timestamp -86400 = December 31, 1969 (one day before the epoch).
In milliseconds: 1700000000000 (13 digits) = same as 1700000000 seconds. The Year 2038 overflow timestamp: 2147483647 = January 19, 2038, 03:14:07 UTC. A useful conversion: 1 hour = 3,600 seconds, 1 week = 604,800 seconds, 1 month ≈ 2,592,000 seconds (30 days).
Tips for Working with Unix Timestamps
To quickly estimate a date from a timestamp, remember that one day is exactly 86,400 seconds (24 × 60 × 60). One year is approximately 31,536,000 seconds (365 days) or 31,557,600 for a Julian year (365.25 days). The timestamp 1,000,000,000 (one billion) was September 9, 2001 — use this as a mental reference point. When debugging, check whether your timestamp is in seconds or milliseconds: a 10-digit number is seconds (up to 2286), while 13 digits is milliseconds.
Negative timestamps are valid and represent dates before 1970. Be cautious with timestamps near DST transitions — the same local time can map to two different UTC timestamps when clocks fall back. Always store timestamps in UTC and convert to local time only for display.
All calculations are performed locally in your browser. No data is sent to any server.
More on AmazonAs an Amazon Associate I earn from qualifying purchases.
Frequently Asked Questions
What is a Unix timestamp?
A Unix timestamp (also called epoch time or POSIX time) is the number of seconds that have elapsed since January 1, 1970 at 00:00:00 UTC. It's a standard way computers track time and is used in programming, databases, APIs, and log files.
How do I convert a date to Unix timestamp?
Enter a date and time in the date picker, and the converter will instantly show you the corresponding Unix timestamp. You can select the date, hour, minute, and second. The result shows both the timestamp in seconds and milliseconds.
What's the difference between seconds and milliseconds timestamps?
Unix timestamps are traditionally in seconds (10 digits). However, many modern systems use milliseconds (13 digits) for greater precision. JavaScript's Date.now() returns milliseconds, while PHP's time() returns seconds. Our converter handles both formats automatically.
Why do programmers use Unix timestamps?
Unix timestamps are timezone-independent, making them perfect for storing dates in databases and APIs. They're simple integers that are easy to sort, compare, and calculate with. Unlike formatted dates, Unix timestamps are unambiguous and universal.
What is the Year 2038 problem?
The Year 2038 problem occurs because many older systems store Unix timestamps as 32-bit signed integers, which can only represent dates up to January 19, 2038. After that, the number overflows. Modern systems use 64-bit integers, which can handle dates billions of years into the future.
What timezone are Unix timestamps in?
Unix timestamps are always in UTC (Coordinated Universal Time), also known as GMT. They represent the same moment in time regardless of your location. This converter displays the result in your local timezone for convenience, but the underlying timestamp is timezone-independent.
How do I get the current Unix timestamp?
The current Unix timestamp is displayed at the top of this tool and updates every second. You can also get it programmatically: in JavaScript use Date.now() for milliseconds or Math.floor(Date.now()/1000) for seconds; in Python use time.time().
Can Unix timestamps be negative?
Yes, negative Unix timestamps represent dates before January 1, 1970 (the Unix epoch). For example, -86400 represents December 31, 1969. This converter supports negative timestamps for historical date conversions.
How do I convert multiple timestamps at once?
Use the Batch tab to convert multiple timestamps at once. Paste your timestamps one per line into the text area and click "Convert All." The tool will process each timestamp, auto-detect its precision (seconds, milliseconds, microseconds, or nanoseconds), and display all results in a table that you can copy with one click.
How do I get the current Unix timestamp in different programming languages?
The Code Snippets tab provides ready-to-use code for 15 programming languages including JavaScript, Python, PHP, Java, C#, Go, Rust, Ruby, Swift, Kotlin, Bash, C/C++, Perl, R, and SQL. Each language includes snippets for getting the current timestamp, converting a timestamp to a date, and converting a date to a timestamp. You can copy any snippet with one click.
What is the difference between Unix time and UTC?
UTC (Coordinated Universal Time) is a time standard that divides time into years, months, days, hours, minutes, and seconds. Unix time is a single number representing seconds elapsed since the epoch (January 1, 1970, 00:00:00 UTC). While UTC can include leap seconds, Unix time does not count leap seconds — each Unix day is exactly 86,400 seconds. Both reference the same timezone (UTC/GMT), but Unix time is simpler for computers to process and compare.
What are microsecond and nanosecond timestamps?
Beyond seconds (10 digits) and milliseconds (13 digits), some systems use microsecond (16 digits) or nanosecond (19 digits) timestamps for higher precision. Microsecond timestamps are used in high-frequency trading and scientific computing. Nanosecond timestamps appear in Go's time.UnixNano(), database systems like InfluxDB, and hardware timing. This converter auto-detects the precision and converts any format.
My Favorites
Drag to reorder
No favorites yet
Tap the ☆ on any tool page to bookmark it for quick access.