Skip to main content
Developer ToolsAugust 24, 2026 · 3 min read

How to Convert a Unix Timestamp to a Date (and Back)

Convert Unix timestamps to local time, UTC, and ISO 8601 — and dates back to timestamps — without ever confusing seconds and milliseconds.

By QR Ivify Team

How to Convert a Unix Timestamp to a Date (and Back)

A raw timestamp in a log file, a database row, or an API response — 1724064000 means nothing at a glance, but converting it to an actual date is a two-second task, with one very common way to get it wrong: mixing up seconds and milliseconds.

The Seconds vs. Milliseconds Trap

Unix time is conventionally measured in seconds since January 1, 1970 — but JavaScript's own Date object internally works in milliseconds, and a huge number of APIs and systems have inconsistent conventions about which one they actually use. Paste a seconds-based timestamp into a tool expecting milliseconds (or vice versa) and you get a wildly wrong date — off by a factor of 1000, which usually means landing somewhere in 1970 or thousands of years in the future, not a subtle few-hours-off error you might catch by eye.

QR Ivify's Unix Timestamp Converter never guesses which unit you mean — you choose seconds or milliseconds explicitly before converting, every time.

Step by Step

Timestamp → Date:

  1. Open the Unix Timestamp Converter.
  2. Choose whether your timestamp is in seconds or milliseconds.
  3. Enter the timestamp (or click "Now" for the current time) and convert.
  4. See the result as local date/time, UTC, and ISO 8601.

Date → Timestamp:

  1. Switch to the "Date → Timestamp" tab.
  2. Pick a date and time using the picker (interpreted in your own local time zone).
  3. Convert to get both Unix seconds and milliseconds.

Why Three Different Date Formats Are Shown

  • Local date/time — what that timestamp means on your own device, in your own time zone.
  • UTC — the same instant, in Coordinated Universal Time, useful for comparing timestamps without a time zone offset confusing the comparison.
  • ISO 8601 — the standard, unambiguous machine-readable format (2024-08-19T12:00:00.000Z), always in UTC, exactly what most APIs and databases expect.

Showing all three side by side means you never have to wonder which time zone a displayed date is actually in.

Frequently Asked Questions

How do I know if my timestamp is in seconds or milliseconds? A 10-digit number is typically seconds (covers dates until the year 2286); a 13-digit number is typically milliseconds. This tool requires you to choose explicitly rather than guessing, since guessing wrong silently produces a wildly incorrect date.

Does this show the time zone clearly? Yes — local time, UTC, and ISO 8601 (which is always UTC) are shown as separate, clearly labeled results, so there's no ambiguity about which time zone you're looking at.

Can I convert a date before 1970? Yes — negative timestamps (dates before the Unix epoch) are handled correctly.

Does this upload anything to a server? No. All conversion happens entirely in your browser using your device's own clock and date handling.

Try It

Need to convert a Unix timestamp to a real date, or a date to a timestamp? QR Ivify's free Unix Timestamp Converter always keeps seconds and milliseconds explicit. Generating test data at the same time? See UUID Generator.

unix timestampdeveloper toolstutorial

Related articles