Unix Timestamp Converter

Convert between Unix timestamps and dates

Current Unix Timestamp

1784270575

Notable Timestamps

0- Unix Epoch
Jan 1, 1970 00:00:00 UTC
1000000000- 1 Billion seconds
Sep 9, 2001
2000000000- 2 Billion seconds
May 18, 2033
2147483647- Y2K38 Problem
Jan 19, 2038

What Is a Unix Timestamp?

A Unix timestamp (also called epoch time or POSIX time) is a single number representing the number of seconds that have elapsed since 00:00:00 UTC on January 1, 1970 — a moment known as the Unix epoch. This simple, unambiguous format is the backbone of timekeeping in nearly every computer system, programming language, database, and web API in use today. Unlike human-readable dates with their time zones, month names, and daylight saving complications, a Unix timestamp is just an integer — globally consistent, sortable, and immune to localization issues.

The Unix epoch of January 1, 1970 was chosen because it predates the widespread adoption of Unix operating systems and provides a clean starting point. Timestamps count forward from that moment: a timestamp of 86400 is January 2, 1970 (one day later). Negative timestamps represent dates before the epoch. A timestamp of 1704067200 represents January 1, 2024. This converter translates in both directions — timestamp to human-readable date and vice versa — handling time zones, ISO 8601 formatting, and even the notorious Year 2038 problem.

This converter also shows the current Unix timestamp updating every second in real time, lists notable timestamps in computing history, and detects whether an input is in seconds or milliseconds (timestamps with 13+ digits are automatically divided by 1000).

How Unix Timestamps Work

The core conversion is straightforward: to convert a Unix timestamp to a JavaScript Date, multiply by 1000 (since JavaScript uses milliseconds) and pass to the Date constructor. To convert a date back to a timestamp, divide its getTime() millisecond value by 1000.

Timestamp (seconds) Equivalent Date (UTC) Significance
0Jan 1, 1970 00:00:00The Unix Epoch
1000000000Sep 9, 2001 01:46:401 billion seconds
2147483647Jan 19, 2038 03:14:07Year 2038 problem (32-bit overflow)

The converter displays timestamps in seconds, which is the standard Unix format. When it detects an input with 13 or more digits, it assumes milliseconds and automatically divides by 1000 for correct conversion. Output also includes the millisecond equivalent alongside the standard seconds value.

Timestamp to Date Conversion

date = new Date(timestamp × 1000)

Where:

  • timestamp= The Unix timestamp in seconds since January 1, 1970 UTC
  • × 1000= Multiply by 1000 to convert seconds to milliseconds (required by JavaScript Date)
  • date= The resulting Date object, convertible to local, UTC, and ISO formats

The Year 2038 Problem

The Year 2038 problem is a time-format limitation in 32-bit computer systems that store Unix timestamps as signed 32-bit integers. A signed 32-bit integer can represent values from −2,147,483,648 to 2,147,483,647. The maximum value — 2,147,483,647 — corresponds to 03:14:07 UTC on January 19, 2038. After that moment, a 32-bit signed timestamp overflows and wraps around to a negative number, which would be interpreted as December 13, 1901. Systems that rely on 32-bit timestamps — older embedded devices, legacy databases, and some file systems — could fail catastrophically on this date.

Modern 64-bit systems are immune to this problem for approximately 292 billion years, well beyond the expected lifetime of any computing technology. Most modern programming languages (JavaScript, Python 3, Java, Go, Rust) use 64-bit integers for timestamps by default. However, embedded systems in industrial controllers, medical devices, transportation infrastructure, and older databases may still use 32-bit time storage — these will need upgrading before 2038, much as systems needed Y2K remediation before the year 2000.

This converter lists the critical 2038 timestamp (2,147,483,647) in its notable timestamps section so you can see exactly when the overflow occurs and verify that your own timestamps fall within a safe range.

How to Use the Unix Timestamp Converter

The converter has two modes and displays the current Unix timestamp at the top in real time:

  1. Timestamp to Date: Enter a Unix timestamp (e.g., 1704067200) to see the equivalent date in multiple formats — local time, ISO 8601, UTC, date only, and time only. The converter also shows a relative time string like "2 days ago" for recent timestamps.
  2. Date to Timestamp: Use the datetime picker to select any date and time, and the converter outputs the Unix timestamp in both seconds and milliseconds, plus the ISO 8601 representation of the chosen moment.

The converter automatically detects whether an input is in seconds or milliseconds (13+ digits = milliseconds) and adjusts accordingly. The relative time display makes it easy to understand how long ago or how far in the future a timestamp represents — from seconds to years.

Where Unix Timestamps Are Used

Unix timestamps are everywhere in software development. Databases like MySQL, PostgreSQL, and MongoDB store timestamps as integers for efficient indexing, sorting, and range queries. Web APIs — from Stripe to GitHub to Twitter — return creation times as Unix timestamps or ISO 8601 strings that derive from them. Log files on Linux and macOS servers prefix every line with a Unix timestamp, and tools like journald and syslog use epoch time for rotation and archival.

In frontend development, Unix timestamps are essential for cookie expiration times, cache-busting query parameters, and JWT (JSON Web Token) "exp" claims that determine when an authentication token becomes invalid. Cloud services like AWS and Google Cloud use epoch time in their APIs and billing systems. When you use this converter to translate a timestamp to a human-readable date, you are performing the same operation that every web browser, mobile app, and server performs billions of times each day.

The relative time display — "3 days ago" or "in 2 hours" — reflects how timestamps are used in social media and messaging apps. Instagram, Twitter, Slack, and WhatsApp all convert timestamps to relative time strings for user display, and this converter includes that feature so you can see exactly how timestamps map to the friendly time labels you encounter every day.

Worked Examples

Converting a Unix Timestamp to a Date

Problem:

A database query returns the timestamp 1717200000. What date does this represent?

Solution Steps:

  1. 1Enter 1717200000 in the Timestamp to Date mode
  2. 2The converter multiplies by 1000 and creates a Date object
  3. 3Local time: June 1, 2024 at midnight UTC
  4. 4ISO 8601: 2024-06-01T00:00:00.000Z

Result:

1717200000 = June 1, 2024 00:00:00 UTC. The timestamp is exactly midnight UTC on the first day of June 2024.

The 1 Billion Second Milestone

Problem:

When was the Unix timestamp exactly 1,000,000,000 seconds?

Solution Steps:

  1. 1Enter 1000000000 in the converter
  2. 2The converter automatically recognizes this is in seconds (10 digits)
  3. 3Result: September 9, 2001 at 01:46:40 UTC
  4. 4This was a celebrated milestone in the tech community

Result:

Timestamp 1,000,000,000 = September 9, 2001. Some organizations held 'billennium' parties to celebrate this moment in computing history.

Current Date to Timestamp

Problem:

You need the Unix timestamp for a specific appointment on December 25, 2026 at 10:00 AM local time.

Solution Steps:

  1. 1Switch to Date to Timestamp mode
  2. 2Use the datetime picker to select Dec 25, 2026 at 10:00 AM
  3. 3The converter computes the Unix timestamp
  4. 4Seconds: 1801756800 (approximately, depending on timezone offset)

Result:

December 25, 2026 10:00 AM = approximately 1801756800 seconds (varies by timezone). The exact value depends on your local UTC offset.

Tips & Best Practices

  • The current Unix timestamp updates live every second at the top of the page — check it for the exact epoch time right now.
  • When a timestamp has 13 or more digits, it is in milliseconds — the converter divides by 1000 automatically.
  • Use the relative time display to quickly understand if a timestamp is seconds, days, or years in the past or future.
  • Unix timestamps are always UTC — the local time display converts to your browser's timezone for convenience.
  • The notable timestamps table shows computing milestones like the 1 billion second mark and the Year 2038 overflow point.
  • For API work, most services expect timestamps in seconds (10 digits) — strip the last 3 digits to convert from JavaScript milliseconds.
  • Negative timestamps represent dates before 1970 — for example, −1 = December 31, 1969 23:59:59 UTC.
  • JWT tokens use the 'exp' claim as a Unix timestamp — use this converter to check when your authentication tokens expire.

Frequently Asked Questions

The Unix epoch is 00:00:00 UTC on January 1, 1970. It is the reference point from which all Unix timestamps are measured. Timestamps count seconds forward from this moment (positive numbers for dates after 1970) and backward (negative numbers for dates before 1970). The epoch was chosen as a convenient starting point during the early development of the Unix operating system at Bell Labs in the late 1960s.
Unix timestamps in seconds have 10 digits (for dates between 2001 and 2286). When a timestamp has 13 digits, it is measured in milliseconds (1/1000 of a second) instead of seconds. This is common in JavaScript, which uses millisecond precision natively, and in some databases and APIs. This converter automatically detects 13+ digit inputs and divides by 1000, displaying both the millisecond and second representations.
Unix timestamps are always measured in UTC (Coordinated Universal Time) and are independent of time zones. A timestamp represents the exact same moment in time everywhere in the world — 1704067200 is midnight UTC on January 1, 2024, whether you are in New York, London, or Tokyo. The converter displays the local time equivalent using your browser's timezone, but the underlying timestamp is universally valid.
On 32-bit systems that store timestamps as signed 32-bit integers, the counter overflows at 2,147,483,647 seconds (03:14:07 UTC, January 19, 2038). After that moment, the timestamp wraps around to −2,147,483,648, which would be interpreted as December 13, 1901. Modern 64-bit systems are immune to this overflow for billions of years. Systems that must survive past 2038 need to use 64-bit time storage. This converter, running in JavaScript which uses 64-bit numbers, correctly handles dates far beyond 2038.
ISO 8601 is the international standard format for dates and times (e.g., 2024-01-01T00:00:00Z). To convert a Unix timestamp to ISO 8601, divide the timestamp in seconds by 1000 and pass to a Date constructor, then call toISOString(). This converter does exactly that, displaying the ISO 8601 string alongside the local time, UTC string, and relative time for every timestamp input.
The current Unix timestamp is displayed at the top of this converter page and updates every second in real time. It equals Math.floor(Date.now() / 1000) — the current number of seconds since the Unix epoch. As of mid-2024, the timestamp is approximately 1.7 billion seconds and increasing by 1 every second, 86,400 every day, and about 31.5 million every year.

Sources & References

Last updated: 2026-06-06

💡

Help us improve!

How would you rate the Unix Timestamp Converter?

<>

Editorial Note

MyCalcBuddy Editorial Team

This page is maintained as an educational calculator reference.

Source

Formula Source: NIST Guide to SI Units

by National Institute of Standards

UpdatedLast reviewed: May 2026
CheckedFormula checks are based on standard references and internal QA review.