Skip to main content

Convert Unix Epoch Timestamps to Human-Readable Dates

Convert Unix timestamps in seconds or milliseconds to ISO 8601, UTC, and local dates with relative time.

Loading tool…

Your file stays in this browser. Nothing is uploaded.

How Unix Timestamp Converter works

Browser Toolset Unix Timestamp Converter translates between seconds/milliseconds since the Unix Epoch (January 1, 1970) and formatted human-readable UTC and local dates in your browser. It accepts numeric timestamps only and shows a live current-epoch counter and a relative time such as 2 hours ago.

How to use this tool

  1. Enter a Unix timestamp number in seconds or milliseconds, and leave the Unit on Auto-detect or pick Seconds or Milliseconds.
  2. Or click "Set to Now" to load the current system timestamp.
  3. Review simultaneous conversions to ISO 8601, UTC string, local time, and the seconds and milliseconds epoch values.
  4. Inspect the relative time (e.g., '2 hours ago' or 'in 3 days').
  5. Click the copy icon next to any value to copy it.

Common uses

  • Backend developers inspecting database createdAt and updatedAt timestamps.
  • DevOps engineers analyzing server log time codes and incident timelines.
  • API developers verifying JWT token expiration (exp) and issued-at (iat) timestamps.
  • Data engineers converting epoch columns in CSV exports to human dates.

Frequently asked questions

What is a Unix timestamp (Epoch time)?

The Unix timestamp is the total number of seconds that have elapsed since midnight Coordinated Universal Time (UTC) on January 1, 1970, excluding leap seconds.

How does it handle seconds vs milliseconds timestamps?

With the Unit on Auto-detect, any value with an absolute size of 100,000,000,000 (1e11) or more is read as milliseconds, and smaller values as seconds. That covers 10-digit seconds and 13-digit milliseconds, but 11- and 12-digit values are also read as milliseconds. Choose Seconds or Milliseconds yourself to override it.

Are my timestamps or server log dates recorded anywhere?

No. Conversions run in your browser using the JavaScript Date object, and the numbers you enter are not uploaded. The tool reads your device clock for the live epoch counter and for relative times such as 2 hours ago.

What is the Year 2038 Problem?

On January 19, 2038, 32-bit signed integers will overflow. Modern 64-bit systems avoid that, and this JavaScript converter handles dates roughly 270,000 years either side of 1970 (the limit of the JavaScript Date object), and it warns when a result falls before 1900 or after 3000.

Can I convert ISO 8601 date strings to Unix timestamps?

No. The input only accepts numbers (timestamps), not date strings. It shows the ISO 8601 form of a timestamp, but it does not turn a date into a timestamp. For that, use your browser console (new Date("2026-01-01T00:00:00Z").getTime()) or a programming language.

Details and limits

Computers store time as simple integers representing elapsed seconds from the 1970 epoch. When debugging server logs or API payloads, engineers need immediate translations to human-readable dates. Our Unix Timestamp Converter turns epoch numbers into readable dates in real time. Nothing is sent to a server.

How a timestamp is read and shown

The number you type is converted inside your browser and nothing is sent anywhere. The box starts with the current time in seconds, and the Current Unix Epoch counter in the corner ticks once a second. The Unit menu offers Auto-detect, Seconds and Milliseconds. In auto mode any value with an absolute size of 100,000,000,000 or more is read as milliseconds and anything smaller as seconds. So 10-digit and 13-digit values behave as expected, but an 11-digit or 12-digit number is also treated as milliseconds. A line under the box states which unit was used.

Six results appear: ISO 8601 in UTC, a UTC string, your local time, a relative phrase, and the seconds and milliseconds epoch values. Local time follows the time zone and offset of your device. No other zone can be picked.

Features and limits

  • Input is a number only. There is no date picker, and a date string cannot be turned into a timestamp here.
  • Negative values give dates before 1970. Decimals are accepted, and the seconds figure is cut down to whole seconds.
  • Dates outside what the browser can represent, roughly 270,000 years either side of 1970, show an error asking for a valid timestamp.
  • A yellow notice appears when the result falls before 1900 or after 3000. It usually means the wrong unit was chosen and suggests the other one.
  • Relative time is in English and counts seconds, minutes, hours or days only, with no weeks, months or years.
  • Set to Now reloads the current second and switches the unit back to Auto-detect. Each result row has its own copy icon, and after a copy only the row you clicked briefly shows a tick.

Avoiding unit and time zone mistakes

When a date lands in 1970, the value was probably in milliseconds but read as seconds, or the other way round. Force the unit instead of relying on auto-detection if your numbers are unusual, for example seconds with a fractional part.

The ISO and UTC rows are the same everywhere, while the local row depends on the device. When you compare logs from different servers, quote the UTC value. To see the same moment in a named city, use the Time Zone Converter. If the number comes from a token, the Private JWT Debugger & Inspector decodes the exp and iat claims, and for the gap between two dates use the Date Difference Calculator.