Epoch Converter – Timestamp to Date & Date to Timestamp
Paste a timestamp, select its unit, and click Convert to see the date in UTC and a selected time zone. Live current epoch. Free, runs in your browser.
Type to search (e.g. London or UTC). Use × to clear and choose another.
Bidirectional converter — jump to a direction:
1. Timestamp → Date
Go to Date → TimestampAuto uses digit length (≈10 → seconds, ≈13 → ms, ≈16 → µs, ≈19 → ns).
2. Date → Timestamp
Go to Timestamp → DateEnter a calendar date and time in the selected timezone, then convert to Unix epoch.
Results
Displayed dates use millisecond precision; human-date fields keep whole seconds only.
Epoch dates for the start and end of the year/month/day
Show start & end of
Convert between total seconds and days, hours, minutes, seconds
From a single duration in seconds, split into parts (and fill the fields below).
Or enter parts separately to get the total in seconds.
Parts are combined as-is (they do not need to be normalized; e.g. 25 hours is allowed).
Unix epoch time, explained
Unix epoch time counts from 1 January 1970, 00:00:00 UTC. The integer itself is timezone-agnostic; Asia/Karachi or America/New_York only change how that same instant is shown on a clock.
Seconds vs milliseconds: around “now”, seconds are ~10 digits (1700000000) and milliseconds ~13 (1700000000000). Example: 1700000000 seconds = 1700000000000 milliseconds → 14 November 2023, 22:13:20 UTC. If an API field is documented in milliseconds, select Milliseconds explicitly when converting it. Auto mode uses digit length, which can be ambiguous for older timestamps and short values.
2038 note: 32-bit signed systems that store seconds overflow near early 2038. Prefer 64-bit timestamps (or milliseconds carefully) for long-lived data.
Current epoch in common environments
| Environment | Example |
|---|---|
| JavaScript | Math.floor(Date.now() / 1000) |
| Python | import time; int(time.time()) |
| PHP | time() |
| SQL (PostgreSQL) | EXTRACT(EPOCH FROM now()) |
| Bash | date +%s |