Unix Timestamp & Epoch Converter: Seconds vs. Milliseconds & UTC Timezones
By Rohit Kumar · Updated 2026-11-28 · 4 min read
Mixing up 10-digit Unix seconds (`1795843200` from Python/PostgreSQL/JWT `exp` claims) with 13-digit Unix milliseconds (`1795843200000` from JavaScript `Date.now()`) is one of the oldest bugs in software engineering—turning today’s date into January 1970 or the year 58,000. Tooltable’s upgraded Unix Timestamp Converter auto-detects both and converts bidirectionally.
Free Browser Tools Used in This Guide
- Unix Timestamp & Time Zone Converter — Live epoch clock plus instant Unix seconds/ms conversion across world time zones.
- Date String Formatter (ISO / RFC / US / EU) — Format any picked date into ISO 8601, UTC RFC 2822, US slash, and European dot formats.
- Cron Expression Builder & Explainer — Decode 5-field cron schedules into plain English with quick DevOps presets.
10-Digit Seconds vs. 13-Digit Milliseconds at a Glance
Unix Epoch time counts elapsed seconds since `1970-01-01T00:00:00Z` (UTC), completely independent of daylight saving time or regional offsets. Knowing which languages emit seconds versus milliseconds saves painful API debugging.
| Platform / Standard | Default Epoch Unit | Typical Digit Count |
|---|---|---|
| JWT `exp` & `iat` claims | Seconds | 10 digits (e.g., 1795843200) |
| Linux `date +%s` / Stripe API | Seconds | 10 digits |
| JavaScript `Date.now()` / Java | Milliseconds | 13 digits (e.g., 1795843200000) |
| PostgreSQL `EXTRACT(EPOCH)` | Seconds (float) | 10 digits + decimals |
Bidirectional Epoch ↔ Human Date Conversion
Open Tooltable’s Unix Timestamp Converter to watch the live ticking epoch clock and convert in either direction immediately.
- Paste any 10-digit or 13-digit epoch into the top converter to see ISO-8601 plus synchronized UTC, New York, London, Berlin, Mumbai, Tokyo, and Sydney times.
- Use the bottom Human Date & Time → Unix Epoch picker to generate exact seconds and milliseconds for API test payloads or database migrations.
- Click Copy on any field without selecting text manually.
Pro Tip: Debugging an expired JWT? Check its `exp` claim in Tooltable’s JWT Decoder, then paste the numeric `exp` timestamp straight here to verify the exact UTC expiry moment.
Best Practice: Always Store UTC Epoch or ISO-8601
Store timestamps in UTC (`INTEGER`/`BIGINT` epoch or `TIMESTAMPTZ`) in your database and only convert to local timezone strings at the very last millisecond inside the user’s UI. Whenever you need to debug API webhooks, inspect JWT expiration claims, or seed historical test records across New York, London, Mumbai, and Tokyo, Tooltable’s bidirectional converter gives you exact 10-digit seconds, 13-digit milliseconds, and ISO-8601 output offline.
Frequently Asked Questions
Why did my timestamp convert to January 1970 in JavaScript?
You probably passed 10-digit Unix seconds into `new Date(ts)` instead of multiplying by 1,000 (`new Date(ts * 1000)`).
Does Unix Epoch change with Daylight Saving Time?
No. Unix time always counts monotonically in UTC, which is why backend systems rely on it to avoid DST bugs.
Can I convert a future date back into Unix seconds and milliseconds?
Yes. Pick any date and time in the Human Date → Unix Epoch panel to copy both 10-digit seconds and 13-digit milliseconds.