Unix Timestamp & Epoch Converter

Convert epoch seconds, milliseconds, and ISO dates instantaneously. Ticking current time, timezone inspection, and relative offsets. 100% in-browser.

Private by architecture: All processing is 100% client-side memory. Your data never leaves this browser tab.
Current Epoch: - (- ms)
Enter Timestamp or Human Date
Date Picker to Timestamp
Formatted Output & Metadata -
Day of Year
-
Week Number
-
Leap Year
-

Epoch & Unix Time Cheatsheet in Common Languages

JavaScript / TypeScript
Math.floor(Date.now() / 1000); // seconds
Date.now(); // milliseconds
Python
import time
time.time() # seconds (float)
int(time.time()) # integer seconds
Go (Golang)
import "time"
time.Now().Unix() // seconds
time.Now().UnixMilli() // milliseconds
SQL (PostgreSQL / SQLite)
EXTRACT(EPOCH FROM NOW()); -- Postgres
strftime('%s', 'now'); -- SQLite

About This Tool

Paste a Unix timestamp in seconds, milliseconds, microseconds, or nanoseconds: or an ISO 8601 date: and it is converted to every common representation at once: UTC ISO 8601, RFC 2822/GMT, local browser time, day of year, ISO week number, and leap-year status. Digit count decides how the raw number is read, so no unit dropdown is needed.

It converts points in time, not recurring schedules. For parsing a crontab expression into its next run times, use Cron Expression Parser instead.

Key Features

  • Auto-detected input units: 11 digits or fewer read as seconds, 12 to 14 as milliseconds, 15 to 17 as microseconds, beyond that as nanoseconds.
  • Live ticking epoch clock: Updates every 250ms from Date.now(), with a Pause button to freeze it before copying.
  • Date picker sync: Pick a date/time directly and every output field, including the timestamp input, updates together.
  • Quick offset buttons: +1 Hour, +1 Day, +1 Week, and -1 Day shift the current value and re-render all fields.
  • Per-field copy buttons: Seconds, milliseconds, ISO 8601, RFC 2822, and local time each copy independently.

Frequently Asked Questions

Which input formats are accepted?
Plain integers up to 11 digits are read as epoch seconds, 12 to 14 digits as milliseconds, 15 to 17 as microseconds, and longer as nanoseconds. Non-numeric input is parsed as an ISO 8601 date or anything else JavaScript's Date constructor understands.
Why does the Current Epoch banner keep changing?
It is a live clock ticking every 250ms from Date.now(). Click Pause before copying a value if you need it to hold still.
Can I convert a date/time instead of typing a timestamp?
Yes: use Date Picker to Timestamp. It fills the timestamp input and every output field automatically.
What do the +1 Hour / +1 Day / +1 Week / -1 Day buttons do?
They offset the currently displayed seconds value by that amount and re-render all fields, useful for quick date-math checks.
How is Leap Year determined?
The standard Gregorian rule: divisible by 4, except century years not divisible by 400.