Epoch / Timestamp Converter
Convert between Unix timestamps and human-readable dates. Auto-detects seconds vs milliseconds.
Related Tools
From the makers of JSON Knife
New tools every week
Get notified. No spam.
How to Convert Unix Timestamps Online
Unix timestamps (epoch time) count seconds since January 1, 1970 00:00:00 UTC. They're everywhere in software — database records, API responses, log files, JWT tokens, and cron schedules. This epoch converter translates between timestamps and human-readable dates instantly, running entirely in your browser.
The tool auto-detects whether your input is in seconds (10 digits, e.g., 1700000000) or milliseconds (13 digits, e.g., 1700000000000). JavaScript's Date.now() returns milliseconds, while most Unix systems and databases use seconds — this converter handles both without you having to think about it.
You can also convert in the other direction: paste a date string like 2024-01-01T00:00:00Z or Jan 1 2024 and get the corresponding Unix timestamp. This is useful when writing database queries with date filters, setting expiration times for tokens, or debugging time-related bugs.
Tips
- JavaScript uses milliseconds (
Date.now()), but most APIs and databases use seconds. Divide by 1000 when converting. - The 32-bit Unix timestamp overflows on January 19, 2038. If you're storing timestamps as 32-bit integers, you'll hit this limit.
- UTC is the standard for timestamps. Always store and transmit times in UTC, then convert to local time for display.
- Use
date +%sin a terminal to get the current Unix timestamp on macOS or Linux.