Unix Timestamp Converter
Convert timestamps to dates and back.
Unix time counts seconds since 1970-01-01 UTC — the lingua franca of logs, APIs and databases.
How to use
- See the current epoch timestamp ticking live.
- Enter seconds, milliseconds (13 digits) or microseconds (16 digits) — the unit is detected automatically → get the UTC and local date.
- Or pick a date → get its timestamp.
About this tool
Milliseconds (13 digits) vs seconds (10 digits) is the classic mix-up; this tool auto-detects seconds, milliseconds and microseconds from the size of the number.
Everything runs in your browser.
How it works
A Unix timestamp counts seconds since 1970-01-01 00:00:00 UTC (the epoch). 1704067200 is exactly 2024-01-01 00:00:00 UTC. It is timezone-free by definition — the same number names the same instant everywhere on Earth.
JavaScript's Date.now() returns milliseconds (×1000), so 1704067200000 looks deceptively similar but is a different unit. Mixing them up is the classic timestamp bug: a seconds value read as milliseconds lands you in January 1970. This converter auto-detects the unit from the size of the number — about 10 digits is seconds, 13 digits is milliseconds and 16 digits is microseconds — and shows the millisecond part explicitly.
Signed 32-bit integers overflow at 2147483647 (2038-01-19 03:14:07 UTC) — the Y2K38 problem. Modern systems use 64-bit time, but old embedded devices and binary file formats still hit the wall.
Worked examples
Reading a server log: The log shows 1728000000. Convert it to learn that means 2024-10-04 00:00:00 UTC — then convert your local deadline back to epoch seconds for the API call.
JavaScript vs backend: Date.now() gives a 13-digit millisecond value like 1728000000000. Divide by 1000 before comparing it with the 10-digit second timestamps your backend stores.
Quick reference
| Timestamp | Date (UTC) |
|---|---|
| 0 | 1970-01-01 00:00:00 |
| 1000000000 | 2001-09-09 01:46:40 |
| 1704067200 | 2024-01-01 00:00:00 |
| 2147483647 | 2038-01-19 03:14:07 (32-bit max) |
Frequently asked questions
Seconds or milliseconds?
Either — the unit is auto-detected from the size of the number: 10-digit values are seconds, 13-digit values are milliseconds and 16-digit values are microseconds.
What timezone is shown?
Both UTC and your local timezone, so there is no ambiguity.
Is anything uploaded?
No.
First time embedding? Read the step-by-step guide →
More free tools
Discord Timestamp Generator
Turn any date and time into Discord timestamp tags — all seven styles, with live previews.
Base64 Encode / Decode
Encode text to Base64 or decode it back.
Color Converter (HEX ↔ RGB)
Convert HEX to RGB and back, with live preview.
Unit Converter
Convert length, weight and temperature instantly.
Currency Converter
Daily ECB reference rates for 26 currencies — updated once per business day.
World Clock & Time Converter
Current time in major cities, plus converter.