Unix Timestamp Converter (Epoch to Date) — Free Online Tool

Convert Unix epoch timestamps (seconds, milliseconds, microseconds) to UTC, Local Time, ISO 8601, and RFC 2822 dates—or convert any date back to Unix time.

100% Client-Side • Your data stays in your browser
How to use & FAQ
Loading tool...

Timestamp Converter

Modern APIs, log aggregators, relational databases, JWT authentication tokens, and cloud monitoring pipelines store moments in time as Unix epoch timestamps rather than locale-dependent date strings. A Unix timestamp counts the elapsed time since midnight UTC on January 1, 1970 (1970-01-01T00:00:00Z), eliminating daylight saving ambiguities and timezone drift across distributed servers. While integers such as 1700000000 are compact for machines, humans debugging an outage or auditing an API payload need instant, trustworthy conversion back into readable dates. Our free online Unix Timestamp Converter runs 100% locally in your browser with zero server calls and zero tracking. At the top of the workspace, a live ticking clock displays the current Unix time in both seconds and milliseconds with one-click Copy and Pause controls. Below it, you can paste any timestamp—positive, negative pre-1970, fractional seconds, 10-digit seconds, 13-digit milliseconds, or 16-digit microseconds—and immediately inspect UTC time, your browser local time, ISO 8601, RFC 2822, relative time, day of year, and ISO week number. Need the reverse? Switch to the Date to Timestamp tab to convert any UTC or local calendar date and time into seconds, milliseconds, and microseconds.

How to Use This Tool

  1. 01 Check the Current Unix Timestamp card at the top to grab the live epoch time in seconds or milliseconds; click Pause at any moment to freeze the clock while copying values into logs or SQL queries.
  2. 02 In the Timestamp to Date tab, paste or type any Unix timestamp into the input box—the converter automatically strips surrounding spaces and detects whether your value uses seconds (10 digits), milliseconds (13 digits), or microseconds (16 digits).
  3. 03 Verify the violet detection badge in the output header to confirm the active unit, or override it manually using the Auto, s, ms, and µs precision selector when working with unusually small or historical numbers.
  4. 04 Review all formatted outputs at once: UTC Time, Local Time with your numeric UTC offset, ISO 8601, RFC 2822, Relative Time, plus normalized seconds, milliseconds, and microseconds.
  5. 05 Click the Royal Violet Copy ISO 8601 button directly in the output header or use the individual Copy button beside any row to copy that exact format to your clipboard.
  6. 06 Switch to the Date to Timestamp tab, pick a calendar date and 24-hour time, choose whether the input is in UTC or Local Time, and copy the resulting Unix seconds or milliseconds with one tap.

How It Works

Unix time (also called POSIX time or Epoch time) measures continuous seconds elapsed since 00:00:00 UTC on January 1, 1970, ignoring leap seconds so every UTC day contains exactly 86,400 seconds. Different runtimes store this count at different resolutions: Linux shells, Python time.time(), PostgreSQL EXTRACT(EPOCH), and JWT exp/iat claims typically emit 10-digit seconds; JavaScript Date.now(), Java System.currentTimeMillis(), and MongoDB timestamps use 13-digit milliseconds; and high-frequency telemetry systems such as PostgreSQL timestamptz internals, BigQuery, or Chromium trace logs often emit 16-digit microseconds. To prevent the classic mistake of treating milliseconds as seconds (which produces dates in the year 55,000+), our auto-detector inspects the numeric magnitude of your input: values below 100 billion (|v| < 1e11) are treated as seconds, values between 1e11 and 1e14 as milliseconds, and values between 1e14 and 1e17 as microseconds. Negative timestamps are fully supported and count backward from the 1970 epoch—for example, -86400 maps cleanly to December 31, 1969 at 00:00:00 UTC. Every conversion uses deterministic UTC calendar math for ISO 8601, RFC 2822, day-of-year, and ISO 8601 week calculations, while your local time display reads your device timezone strictly inside your browser.

Practical Examples

10-Digit Unix Seconds from a JWT Token (exp / iat)

Input
                      1700000000 (Auto-detected: Seconds, 10 digits)
                    
Output
                      UTC: 2023-11-14 22:13:20 UTC | ISO 8601: 2023-11-14T22:13:20.000Z | RFC 2822: Tue, 14 Nov 2023 22:13:20 +0000
                    

Standard JSON Web Tokens store issued-at (iat) and expiration (exp) claims in whole Unix seconds. Pasting the integer immediately reveals the exact UTC and local expiration time.

13-Digit JavaScript / Java Millisecond Timestamp

Input
                      1700000000456 (Auto-detected: Milliseconds, 13 digits)
                    
Output
                      ISO 8601: 2023-11-14T22:13:20.456Z | Seconds: 1700000000 | Microseconds: 1700000000456000
                    

Because the input contains 13 digits, the tool automatically switches to millisecond precision and preserves the exact .456 millisecond fraction inside the ISO 8601 output.

Negative Pre-1970 Timestamp

Input
                      -86400 (Auto-detected: Seconds, Pre-1970)
                    
Output
                      UTC: 1969-12-31 00:00:00 UTC | ISO 8601: 1969-12-31T00:00:00.000Z
                    

Dates earlier than January 1, 1970 are represented by negative offsets. Subtracting 86,400 seconds (one exact UTC day) lands on December 31, 1969.

Tips & Best Practices

  • Always store timestamps in UTC in databases and APIs, and convert to the user local timezone only at the presentation layer to avoid daylight saving bugs.
  • Check whether an API returns 10-digit seconds or 13-digit milliseconds before passing the value to JavaScript new Date(ts), which always expects milliseconds.
  • Remember the Year 2038 problem (Y2K38): signed 32-bit integers overflow on 2038-01-19T03:14:07Z (timestamp 2147483647), so always use 64-bit integers (BIGINT) for timestamp columns.
  • When comparing log files from different regions, copy the ISO 8601 UTC string (ending in Z) so every teammate reads the exact same moment unambiguously.
  • If you need to inspect a historical timestamp very close to 1970 expressed in milliseconds (such as 5000 ms after epoch), click the manual ms toggle to override auto-detection.

Frequently Asked Questions

What is a Unix timestamp (Epoch time)?

A Unix timestamp is the number of seconds (or milliseconds/microseconds) that have elapsed since 00:00:00 UTC on January 1, 1970, not counting leap seconds. It provides a compact, timezone-independent way to represent instants in software.

How does the converter know if my timestamp is in seconds, milliseconds, or microseconds?

In Auto mode, the tool inspects the number of digits and magnitude: values up to 11 digits (or with decimals) are interpreted as seconds, 12 to 14 digits as milliseconds, and 15 to 17 digits as microseconds. You can also override the unit manually at any time.

Can I convert negative Unix timestamps for dates before 1970?

Yes. Negative numbers count backward from January 1, 1970 UTC. For example, -86400 converts to 1969-12-31T00:00:00.000Z, and a Pre-1970 badge confirms the negative offset.

What is the Year 2038 (Y2K38) limit?

Older 32-bit systems store Unix seconds as a signed 32-bit integer whose maximum value is 2,147,483,647 (January 19, 2038 at 03:14:07 UTC). Modern 64-bit systems and this converter handle dates hundreds of thousands of years into the past and future.

Does Unix time include leap seconds or timezones?

No. Unix time is always anchored to UTC with zero timezone offset, and POSIX defines every day as exactly 86,400 seconds without inserting extra leap seconds into the counter.

Are the timestamps I paste sent to any server?

Never. Every live tick, timestamp parse, and date conversion runs 100% locally in your browser memory with zero network requests.

Related Tools