Home Tools Blog About

Epoch Converter

In short

Convert Unix epoch timestamps to dates and dates to epoch - seconds or milliseconds, ISO/UTC/Local, relative time. Free, offline, client-side, instant, secure.

  • Runs in your browser
  • Nothing uploaded
  • Free, no sign-up

Convert Unix epoch timestamps to human-readable dates and back. Auto-detects seconds vs milliseconds, shows ISO 8601, UTC, local time, date, time, and a relative "X ago" reading. Negative timestamps (pre-1970) work too.

-

Epoch → Date

Date → Epoch

🛡
100% PrivateNo server uploads, ever
InstantRuns in your browser
💧
No WatermarksClean output, always
🆓
Free ForeverNo accounts, no limits

How to Use Epoch Converter

  1. Epoch → Date. Paste an epoch integer (e.g. 1735689600) into the top input. The unit dropdown is set to "Auto-detect" by default - it picks seconds for values below 1012 (≈13 digits) and milliseconds for values above. You can override the dropdown if you know the unit.
  2. Use current time. Click the "Use current time" button in the Epoch → Date section to drop the current Unix timestamp into the field. It uses the unit you selected in the dropdown.
  3. Read the results. Nine rows appear: detected unit, ISO 8601, UTC, Local, Date, Time (UTC), Seconds, Milliseconds, and a relative reading ("3 hours ago", "in 2 days"). Each row has its own Copy button.
  4. Date → Epoch. In the bottom section, pick a date and time using the browser's native datetime picker. The value is interpreted in your local timezone (this is how <input type="datetime-local"> works - there's no UI to override it; pre-convert to UTC if you need that).
  5. Read the epoch. Three rows: Seconds, Milliseconds, ISO 8601 (in UTC). Each has its own Copy button.
  6. Copy individually from any result row, or click Download both as .txt to save everything currently displayed to epoch-converter.txt. Ctrl/Cmd + Enter also triggers download.

Frequently Asked Questions

What is an epoch timestamp?

An epoch timestamp (Unix time) is the count of seconds – or in many systems, milliseconds – that have elapsed since 1970-01-01T00:00:00Z. It’s a single signed integer with no timezone of its own, so it’s the canonical way to store “an instant in time” in databases, APIs, and log files.

Is the epoch in seconds or milliseconds?

Both conventions exist. Unix kernels, C time_t, and most APIs use seconds. JavaScript’s Date.now() and many newer APIs use milliseconds. This tool auto-detects: any input with absolute value ≥ 1012 (≈13 digits, covering any millisecond timestamp from year 2001 onward) is treated as milliseconds; smaller values as seconds. The dropdown lets you force one if the heuristic is wrong (e.g. a very old date in milliseconds).

What timezone does the converter use?

For Epoch → Date: the “Local” row is your browser’s timezone, “UTC” and “ISO 8601” are always UTC. The stats line at the top shows your detected timezone name and UTC offset. For Date → Epoch: the value you pick in the datetime input is interpreted in your local timezone – that’s how <input type="datetime-local"> is defined and there’s no UI to override it. If you need to enter a UTC date, mentally shift it before entering, or use the Epoch → Date direction with a known epoch value.

Can I convert dates before 1970?

Yes. Negative epoch values are accepted in both directions. For example, -1000000000 seconds is 1938-04-24 22:13:20 UTC. The seconds calculation uses Math.floor(ms / 1000), which floors toward negative infinity – so -1500 ms becomes -2 s, matching the canonical Math.floor(Date.now()/1000) idiom. If you’d rather truncate toward zero, divide manually.

Why is epoch time useful for developers?

It’s timezone-free (the same instant has the same integer everywhere), monotonic if you use ms with subsecond resolution, trivially comparable (just < / >), and trivially differenced (subtract for elapsed time). Storing local datetime strings is what causes timezone bugs; storing epoch ms eliminates the entire category.

What’s the difference between ISO 8601, UTC, and Local?

ISO 8601 is the machine format: 2025-01-01T00:00:00.000Z. UTC is the same instant in human-readable form: Wed, 01 Jan 2025 00:00:00 GMT. Local is the same instant rendered in your browser’s timezone using whatever format your locale prefers (US: 1/1/2025, 12:00:00 AM; UK: 01/01/2025, 00:00:00). All three represent the same moment.

Does this handle the Y2038 problem?

Yes – but only because JavaScript uses 64-bit floats, not 32-bit ints, for Date arithmetic. The Y2038 problem is specific to systems that store epoch seconds in a signed 32-bit integer (max 2,147,483,647 = 2038-01-19 03:14:07 UTC). This tool’s internal math handles values far beyond that, up to about ±8.64×1015 ms (year ±275760), where JavaScript’s Date itself starts returning NaN.

Is my data secure?

Yes. The page loads three static files (HTML, CSS, JS) and then runs entirely in your browser. Your timestamps never leave the device – no fetch, no XHR, no analytics, no cookies. You can disconnect from the internet after the page loads and the tool still works.

Is this tool free?

Yes – free, unlimited, no signup, no watermark. Use the conversions anywhere. Attribution to is appreciated but not required.

Keep going

Related Tools

All Developer tools →

CSS Unit Converter

Convert between 23 CSS units (px/em/rem/pt/%/ch/vmin/vmax/dvw/cqw…) with property context + comparison table. Free, offline,…

Angle Converter - Degrees, Radians, Gradians

Free angle converter. Switch between degrees, radians, gradians, arcminutes and arcseconds instantly. Runs in…

Area Converter - Square Meters, Feet, Acres

Free area converter. Switch between square meters, square feet, acres, hectares and square miles…

ASCII Case Converter

Transform any text into Uppercase, Lowercase, Title Case, or Sentence Case safely formatting paragraphs…

Bionic Reading Converter

Bionic Reading Converter format instantly. Bold word prefixes for faster reading. Free, offline, client-side,…

Case Converter

Case Converter use on any text to sentence, UPPER, lower, Title, camel, snake or…

Color Converter

Color Converter any colour between HEX, RGB, HSL, HSV, and CMYK. Accepts alpha and…

Data Storage Converter - MB, GB, MiB, GiB

Free data storage converter. Switch between bytes, KB, MB, GB, TB and binary KiB,…

Data Transfer Rate Converter - Mbps to MB/s

Free data transfer rate converter. Switch between Mbps, MB/s, Gbps and more instantly. Runs…

Energy Converter - Joules, Calories, kWh, BTU

Free energy converter. Switch between joules, calories, kcal, watt hours, kWh and BTU instantly.…

Frequency Converter - Hz, kHz, MHz, GHz

Free frequency converter. Switch between Hz, kHz, MHz, GHz and rpm instantly. Runs in…

Fuel Economy Converter - MPG and L/100km

Free fuel economy converter. Switch between US mpg, UK mpg, km per liter and…

Share

Embed this tool

Add this free tool to your website. Copy and paste the code: