Unix Timestamp Converter
Convert epoch timestamps in seconds or milliseconds to local time, UTC and ISO 8601, and convert any date back to a Unix timestamp. Shows the current timestamp live.
Free No sign-up Updated
Current Unix timestamp
Timestamp to date
Date to timestamp
- Seconds
- Milliseconds
How to use Unix Timestamp Converter
- 1 The current Unix timestamp is shown at the top and updates every second.
- 2 Paste a timestamp in Timestamp to date. Seconds and milliseconds are detected automatically.
- 3 See it as local time, UTC, ISO 8601 and relative time (for example “3 days ago”).
- 4 Use Date to timestamp to convert a date and time back, in your local time zone or UTC.
Why developers use Unix time
Unix timestamps represent a moment as a single number that is the same everywhere in the world, which makes them ideal for databases, APIs, logs, JWT expiration claims and cache headers. Converting them to readable dates is a daily task when debugging.
Common pitfalls
- Mixing seconds and milliseconds — a 13-digit number is in milliseconds.
- Forgetting time zones — timestamps are always UTC; only the display is local.
- Storing dates as 32-bit integers, which overflow in January 2038.
Decoding a token with exp and iat claims? The JWT Decoder converts them automatically. To count calendar days between dates, use the Date Calculator.
Frequently asked questions
What is a Unix timestamp?
A Unix timestamp (epoch time) is the number of seconds since January 1, 1970 at 00:00:00 UTC. It is used by databases, APIs, logs and programming languages because it is the same in every time zone.
Seconds or milliseconds?
Most systems (Unix, PHP, Python, databases) use seconds — 10 digits today. JavaScript and Java use milliseconds — 13 digits. The converter detects which one you pasted.
What is the year 2038 problem?
Systems that store timestamps as signed 32-bit integers overflow on January 19, 2038 (timestamp 2147483647). Modern systems use 64-bit values, which last for billions of years.
How do I get the current timestamp in code?
JavaScript: Math.floor(Date.now() / 1000). PHP: time(). Python: int(time.time()). SQL (MySQL): UNIX_TIMESTAMP().
Related tools
JSON Formatter
Format, validate and minify JSON directly in your browser.
Hash Generator
Generate MD5, SHA-1, SHA-256 and SHA-512 hashes of text or files.
Base64 Encoder & Decoder
Encode and decode Base64 text and files, with URL-safe support.
Color Converter & Contrast Checker
Convert HEX, RGB and HSL colors and check WCAG contrast.