Skip to content
CleanGlyph home

Unix Timestamp Converter — Epoch to Date Online

Convert Unix timestamps to readable dates and dates back to Unix time. Supports seconds, milliseconds, microseconds, nanoseconds, UTC and local time. Free, private and browser-based.

Your text never leaves your browser.

Conversion mode

Whole numbers only, with an optional - for dates before 1970. Up to 40 digits.

Converted results

Enter a Unix timestamp such as 1700000000, or press Now or Sample. Results appear as you type.

Summary

Status
Waiting for input
Input unit
Auto-detect
Time zone
Shown in UTC and your time zone
Output precision
–
Readable dates
–

Enter a timestamp or date to see its units and precision. Nothing is uploaded.

Conversion options

Timestamp unit

Auto-detect guesses from the digit count (1–10 seconds, 11–13 milliseconds, 14–16 microseconds, 17+ nanoseconds). It is a heuristic: choose a unit for dates long before or after today, or unusual values.

What is a Unix timestamp?

A Unix timestamp, also called epoch time or Unix time, counts the time elapsed since the Unix epoch: 1970-01-01 00:00:00 UTC. It is a single integer, so it is easy to store, sort and compare, and it means the same instant on every computer regardless of time zone. Leap seconds are not counted, so every Unix day is exactly 86,400 seconds.

How to convert a timestamp to a date

Keep Timestamp to Date selected and paste the number. The unit is auto-detected from the digit count, and the detected unit is always shown; pick one in Conversion options to override it. You get the instant as an ISO 8601 UTC string, a readable UTC date, your local time, and the same value in all four units. Press Now to load the current time.

How to convert a date to a timestamp

Switch to Date to Timestamp and pick a date and time with the date picker, including seconds and milliseconds where your browser supports it. Choose whether the wall-clock time is UTC or your local time: the same date gives different timestamps in different time zones. For example, 2023-11-14 22:13:20 read as UTC is 1700000000 seconds.

Example timestamps

Unix timestamps and their UTC dates
TimestampUnitUTC (ISO 8601)
0Seconds1970-01-01T00:00:00.000Z
-1Seconds1969-12-31T23:59:59.000Z
1700000000Seconds2023-11-14T22:13:20.000Z
1700000000123Milliseconds2023-11-14T22:13:20.123Z
1700000000123456Microseconds2023-11-14T22:13:20.123456Z
1700000000123456789Nanoseconds2023-11-14T22:13:20.123456789Z
2147483647Seconds2038-01-19T03:14:07.000Z
-1Nanoseconds1969-12-31T23:59:59.999999999Z

Seconds, milliseconds, microseconds and nanoseconds

The classic Unix timestamp is in seconds and has 10 digits today. JavaScript, Java and many APIs use milliseconds (13 digits), Python and PostgreSQL often expose microseconds (16 digits), and Go, tracing systems and high-resolution logs use nanoseconds (19 digits). Each unit is 1,000 times the previous one. Auto-detection relies on these lengths, so a value from 1970 or far in the future may need a manual unit.

UTC versus local time

UTC is the universal reference with no daylight saving time. Your local time adds the offset of your browser's time zone, which can change during the year. The converter shows both so you can match server logs, which are usually UTC, against what you saw on your clock. When clocks jump forward, some local times never exist and are reported as errors; when clocks fall back, a repeated local time uses the earlier occurrence, as browsers do by default. For historical zones whose offsets include seconds, the local ISO row uses UTC to keep the instant exact.

Why JavaScript uses milliseconds, and where precision is lost

JavaScript Date stores time as milliseconds since the epoch, so Date.now() returns a 13-digit number. Numbers in JavaScript are floating point and stay exact only up to 9007199254740991; a 19-digit nanosecond timestamp exceeds that and its last digits silently change. This tool parses every timestamp with BigInt and only uses Date for the calendar fields, so ISO 8601 output and Unix values keep full nanosecond precision. Readable local displays are limited to milliseconds, and the tool tells you when that hides detail.

Dates before 1970 and the 2038 problem

Instants before the epoch are negative: -1 is the last second of 1969, and -1 nanosecond is 1969-12-31T23:59:59.999999999Z. Negative values are rounded down to the preceding millisecond only for readable calendar displays; ISO and Unix values stay exact. At the other end, a signed 32-bit integer can hold at most 2147483647 seconds, which is 2038-01-19T03:14:07Z. Systems still storing time that way overflow one second later, which is why modern platforms use 64-bit timestamps.

Where you will find Unix timestamps

Timestamps appear in API responses such as created_at fields, server and application logs, database rows, cache headers and webhooks. JSON Web Tokens use Unix seconds for the exp, nbf and iat claims; the JWT Decoder & Claims Inspector reads them for you. To inspect a whole API response, use the JSON Formatter & Validator, and decode encoded query values with the URL Encoder & Decoder.

Frequently asked questions

How do I convert a Unix timestamp to a date?

Keep Timestamp to Date selected and paste the number. The converter shows the instant in UTC, in your local time and as an ISO 8601 string, plus the same value in seconds, milliseconds, microseconds and nanoseconds. Each result has its own Copy button.

How can I tell if a timestamp is in seconds or milliseconds?

Count the digits. Present-day timestamps have 10 digits in seconds, 13 in milliseconds, 16 in microseconds and 19 in nanoseconds. Auto-detect uses these ranges, but it is only a guess: a short millisecond value from 1970 looks like seconds. If the date looks wrong, choose the unit yourself.

Does a Unix timestamp include a time zone?

No. A Unix timestamp counts time since 1970-01-01 00:00:00 UTC and identifies one instant everywhere in the world. Time zones only matter when you display that instant as a calendar date or when you turn a wall-clock date into a timestamp, which is why Date to Timestamp asks whether your input is UTC or local time.

How do I get a timestamp for a date before 1970?

Dates before the Unix epoch have negative timestamps. -1 is 1969-12-31T23:59:59Z, one second before the epoch. Enter a leading minus sign in Timestamp to Date, or pick an early date in Date to Timestamp to see the negative values.

What is the year 2038 problem?

Systems that store Unix seconds in a signed 32-bit integer can count up to 2147483647, which is 2038-01-19T03:14:07Z. One second later the value overflows and wraps to a date in 1901. Modern systems use 64-bit integers, but old databases, file formats and embedded devices may still be affected.

Why do long timestamps lose precision in JavaScript?

JavaScript Number values are 64-bit floating point and represent integers exactly only up to 9007199254740991. Nanosecond timestamps are larger than that, so Number(1700000000123456789) silently changes the last digits. This converter uses BigInt integer arithmetic instead, so every digit is preserved.

Why does the local time show only milliseconds?

Browsers format dates with JavaScript Date, which stores milliseconds. When a timestamp has microsecond or nanosecond detail, the readable UTC and local displays stop at milliseconds and the tool says so. The ISO 8601 strings and Unix values keep the full precision.

What happens with local times around daylight saving changes?

When clocks jump forward, some local times never happen; the converter reports these as errors instead of shifting them. When clocks fall back, some local times happen twice; the browser uses the earlier occurrence. Choose UTC if you need an unambiguous result.

Are my timestamps sent anywhere?

No. All conversion runs in your browser with built-in JavaScript. Values are not uploaded, added to the URL or saved, and the converter works offline once the page has loaded.