Unix Timestamp Converter Online

Convert between Unix timestamps and human dates in local time and UTC, right in your browser. Everything runs locally.

All timestamp and date conversion happens locally in your browser, and nothing you enter is uploaded to a server.

Built and maintained by Udit Agarwal

Unix Timestamps and Epoch Time, Explained

Working with cron schedules? Try the Cron Expression Explainer.

About Unix Timestamp Converter

This unix timestamp converter turns epoch values into readable dates and converts dates back into Unix time. Paste a timestamp in seconds or milliseconds and it auto-detects the unit by magnitude (around 13 digits is treated as milliseconds), then shows the ISO 8601 string, UTC time, your local time, and a relative phrase like "3 hours ago". You can also enter a date such as 2025-01-31T12:00:00Z and get back both the seconds and milliseconds epoch, making it a fast epoch converter for unix time to date and back. A live clock shows the current time as it ticks. It is built for developers, QA engineers, and anyone debugging logs, APIs, or database fields. Everything is processed locally in your browser, so your data never leaves your device.

Features

  • Converts Unix timestamps in seconds or milliseconds to human-readable dates
  • Auto-detects the unit by magnitude, or lets you force seconds or milliseconds
  • Shows ISO 8601, UTC, and your local time side by side
  • Displays relative time such as "in 2 days" or "5 minutes ago"
  • Converts a date string back into both seconds and millisecond timestamps
  • Live current-time display that updates as the clock ticks
  • Flags out-of-range timestamps and unparseable dates with clear messages
  • One-click copy for any converted value

How to use the Unix Timestamp Converter

  1. Paste a Unix timestamp into the input box, or type a date like 2025-01-31T12:00:00Z.
  2. Let the tool auto-detect seconds or milliseconds, or pick the unit manually.
  3. Read the ISO, UTC, local, and relative-time results.
  4. Click copy next to any value to grab it for your code or logs.

Example

Input

1706700000

Output

ISO:   2024-01-31T11:20:00.000Z
UTC:   Wed, 31 Jan 2024 11:20:00 GMT
Local: 1/31/2024, 11:20:00 AM
Unit:  seconds

A 10-digit value is detected as seconds and expanded to ISO, UTC and local time.

Common errors & troubleshooting

  • A millisecond timestamp from before September 2001 is read as seconds and lands far in the future. — In Auto mode only values of 13 digits or more count as milliseconds, so set the unit to milliseconds by hand for older values of 12 digits or fewer.
  • Entering a non-numeric value shows "Enter a numeric timestamp." — Use only digits (and an optional leading minus) in the timestamp box; put text dates in the date field instead.
  • A date string fails to parse with a "Could not parse date" message. — Use an unambiguous format like 2025-01-31 or 2025-01-31T12:00:00Z.
  • A huge timestamp returns "Timestamp is out of range." — Check the digit count: a nanosecond value (19 digits) is beyond the latest date a browser can show. Divide it by 1,000,000 to get milliseconds.
  • Local time looks off by several hours compared to a colleague's. — Compare the UTC value instead, since local time reflects your own machine's timezone.

Frequently asked questions

What is a Unix timestamp and what does this converter do?
A Unix timestamp is the number of seconds (or milliseconds) since 1 January 1970 UTC. The Unix Timestamp Converter turns that epoch value into ISO 8601, UTC, and local dates, and converts dates back into epoch time.
How do I convert a date back into a Unix timestamp?
Enter a date like 2025-01-31T12:00:00Z in the date field and the Unix Timestamp Converter returns the epoch value in both seconds and milliseconds.
Does the converter use seconds or milliseconds?
Both. It auto-detects by magnitude, treating roughly 13-digit values as milliseconds, and you can also force the unit manually.
What timezones does the Unix Timestamp Converter show?
It shows both your local time and UTC for every timestamp, alongside the ISO 8601 string, so you can cross-check values across regions.
What does the relative time mean?
It expresses the timestamp compared to now, such as "in 2 days" or "3 hours ago", which is handy for spotting stale log entries.
Is my timestamp data kept private in the Unix Timestamp Converter?
Yes. The converter runs entirely in your browser, so the values you enter never leave your device.

Related tools

Guides

More Date / Time tools

  • UUID Generator — Generate up to 1,000 UUIDs at once: random v4, time-ordered v7 or the NIL UUID.
  • Cron Explainer — Explain a cron expression and preview its next run times.
  • World Clock & Time Zone Converter — Compare times across cities on an aligned 24-hour grid and plan meetings — right in your browser.
  • Cron Expression Generator — Visually build a cron expression with live preview, a plain-English summary and next run times.
  • Date Duration Calculator — Calculate the duration between two dates in years, months, weeks, days and business days.
  • Age Calculator — Calculate exact age in years, months and days as of any date, plus totals in weeks, days, hours and next birthday.
  • Duration Converter — Convert a duration between seconds, minutes, hours, days, HH:MM:SS and human formats.
  • Business Days Calculator — Add or subtract working days from a date, or count business days between two dates.
  • Date Calculator — Add or subtract years, months, weeks and days from a date to find the resulting date.
  • Time Duration Calculator — Calculate the hours and minutes between two times of day, even across midnight.
  • ISO Week Number Calculator — Find the ISO-8601 week number for any date, and the date range for a given week.
  • strftime Date Formatter — Format a date with strftime tokens (%Y, %m, %d…) and preview the output live.

See all Date / Time tools (29) · All tools