Menu

Unix Timestamp Converter

Convert between Unix timestamps, ISO 8601, UTC, and local time.

Last updated

Unit
Now
InputValid timestamp
OutputClick any value to copy
  • Unix (s)1777239189
  • Unix (ms)1777239189000
  • ISO 8601 (UTC)2026-04-26T21:33:09.000Z
  • Local2026-04-26 21:33:09
  • UTCSun, 26 Apr 2026 21:33:09 GMT
  • Relative

What is a Unix timestamp converter?

A Unix timestamp converter turns *epoch time* — a single number representing a moment in history — into human-readable dates, and converts dates back into timestamps. Developers see timestamps everywhere: database columns, log lines, API responses, analytics events, JWT exp claims, scheduler triggers, and cache expiration headers.

The core idea is simple: computers store time as a number (seconds or milliseconds since 1970-01-01 00:00:00 UTC), but humans need calendars, time zones, and readable formats. Converting between the two is one of the most common debugging tasks in any web or mobile app.

The most confusing part is *units*. POSIX and most backend languages use seconds. JavaScript, Java, and many message brokers use milliseconds. Some metrics systems use microseconds or nanoseconds. A 10-digit number is almost always seconds; a 13-digit number is almost always milliseconds.

What you'll learn while converting timestamps

  • Unix timestamps measure time as *seconds* or *milliseconds* since the Unix epoch (1970-01-01 00:00:00 UTC).
  • UTC is a fixed reference. Local time depends on the user's time zone, daylight saving rules, and the device's clock setting.
  • ISO 8601 (2026-04-25T12:00:00Z) is a portable text format. The trailing Z (or +00:00) means UTC; an offset like +02:00 means a local time that is 2 hours ahead of UTC.

How to convert a Unix timestamp step by step

  1. Paste the value

    Paste a number (seconds or milliseconds) or a date string. The converter auto-detects the format based on length and shape.

  2. Confirm the unit

    Toggle seconds vs milliseconds if the auto-detection guesses wrong — a 10-digit number is seconds, a 13-digit number is milliseconds.

  3. Read both views

    The output shows ISO 8601 in UTC, your local time, and a human-readable relative phrase (3 hours ago, in 2 days).

  4. Copy what you need

    Copy the timestamp, the ISO string, or the local time directly. Useful when filling in a JWT exp, a database row, or a log query.

Timestamp formats quick reference

The formats you'll see most often when working with dates and times in code. ISO 8601 is also profiled by the IETF as RFC 3339 for use in protocols.

FormatExampleWhere you see it
Unix seconds1777118400Backend logs, JWT exp, POSIX time(), Redis
Unix milliseconds1777118400000JavaScript Date.now(), Java System.currentTimeMillis()
ISO 8601 UTC2026-04-25T12:00:00ZREST APIs, JSON, GraphQL, log files
ISO 8601 with offset2026-04-25T14:00:00+02:00User-facing scheduling, calendar invites
RFC 2822Sat, 25 Apr 2026 12:00:00 GMTEmail headers, HTTP Date and Last-Modified
Date only2026-04-25Birthdays, holidays — no time-zone meaning

Timestamp examples to try

Seconds vs milliseconds

Seconds (10 digits)

1777118400

Milliseconds (13 digits)

1777118400000

Both values describe the same moment if the first is interpreted as seconds and the second as milliseconds. Mixing them up is the most common timestamp bug.

Read an API timestamp

Response
{  "id": 42,  "createdAt": 1777118400,  "expiresAt": 1777204800}

Convert each value before assuming whether it is in the past or future. Most JSON APIs use Unix seconds, but always check the docs — JavaScript-heavy backends often emit milliseconds.

Compare UTC and local time

UTC

2026-04-25T12:00:00Z

Same moment, +02:00

2026-04-25T14:00:00+02:00

These two strings represent the *same instant*. Always store moments in UTC; format to local time only at display time.

Common timestamp mistakes

  • Mixing seconds and milliseconds. A factor of 1000 can move a date by decades — 1700000000 read as seconds is November 2023, but read as milliseconds it's January 1970.
  • Storing a date string without a time zone. Different systems will interpret it differently — some assume UTC, some assume the server's local zone.
  • Comparing formatted date strings ('2026-04-25') instead of comparing timestamps. Two valid ISO strings can describe the same moment in different formats.

Unix Timestamp FAQ

What is a Unix timestamp?
A Unix timestamp (also called epoch time) is the number of seconds (or milliseconds) that have elapsed since 1970-01-01 00:00:00 UTC. It's a single number that represents a specific moment in time, independent of any time zone.
Why are some timestamps 10 digits and others 13?
A 10-digit Unix timestamp is in seconds. A 13-digit one is in milliseconds. JavaScript's Date.now() returns milliseconds; most backends return seconds.
What does UTC mean?
UTC stands for Coordinated Universal Time. It is the global standard time reference and does not observe daylight saving. Most databases, APIs, and logs should store time in UTC.
Why does JavaScript use milliseconds?
JavaScript's Date object stores timestamps as milliseconds since the Unix epoch — that's the value Date.now() and new Date().getTime() return. It gives more precision than seconds, but it's a frequent source of off-by-1000 bugs when interfacing with other languages.
How do I convert a Unix timestamp to a date?
Multiply by 1000 (if seconds) and pass to new Date(...) in JavaScript, or use datetime.fromtimestamp(...) in Python. Or paste it into a Unix timestamp converter for a one-click result.
Will Unix timestamps overflow?
Signed 32-bit Unix timestamps overflow on 2038-01-19 — the so-called Year 2038 problem. Modern languages and databases store timestamps as 64-bit integers, which extends the safe range by hundreds of billions of years.

Learn more

Other developer tools

Learn to code with Coddy

GET STARTED