Unix Timestamp Converter — epoch ↔ date
Convert Unix timestamp (epoch) to date and back. Auto-detects seconds/milliseconds, shows local + UTC + ISO 8601 + relative time.
From Unix Timestamp
From Date/Time
Unix Timestamp = seconds since 1970-01-01 UTC. JavaScript Date uses milliseconds (×1000). Tool auto-detects 10 digits = seconds, 13 digits = ms.
What is Unix Timestamp?
Unix Timestamp (or Unix epoch time) is the number of seconds that have elapsed since 00:00:00 UTC on January 1, 1970 — known as "the epoch". It's the most consistent way computers store time across timezones.
- Linux / macOS / Unix:
date +%sreturns the timestamp in seconds. - JavaScript:
Date.now()returns milliseconds (×1000). - Python:
time.time()returns seconds as a float. - Database: PostgreSQL/MySQL TIMESTAMP/DATETIME columns store epoch internally.
Seconds vs milliseconds
- 10 digits = seconds. E.g.
1730000000(late 2024). - 13 digits = milliseconds. E.g.
1730000000000. - 16 digits = microseconds (rare).
The tool auto-detects based on digit count. You can also force seconds/ms via the radio buttons.
When to use it
- Debug an API: response says
"created_at": 1730000000— convert to a real date. - JWT tokens:
expandiatclaims are epoch — check if a token is still valid. - Database logs: server timestamps — quick conversion to your local time.
- Cron schedules: figure out exactly when a cron job will run next.
Related
- JWT Decoder — auto-decodes iat/exp/nbf fields
- Cron Explainer — parse cron + next run times
- Age & Date Diff — diff between two dates
- All tools
Related tools
See all tools →JWT Decoder
Decode JWT tokens — header, payload, claims with readable timestamps.
NEWJSON Formatter
Format / minify / validate JSON. Sort keys A-Z, custom indent, Ctrl+Enter shortcut.
NEWRegex Tester
Test regex live with match highlighting. 7 ready presets including Vietnamese.
NEWUUID / Hash / Base64 / URL
Bundle: UUID v4, SHA-256/512 hash, Base64 (URL-safe), URL encode.