Timestamp Converter
Convert Unix timestamps to human-readable dates and back. Supports seconds, milliseconds, UTC, local time, and ISO 8601. 100% client-side.
📅 Timestamp → Date
🗓 Date → Timestamp
About Timestamp Converter
A Unix timestamp (also called Epoch time or POSIX time) is the number of seconds that have passed since 00:00:00 UTC on January 1, 1970 — a moment known as the Unix Epoch. It is the universal way computers represent time: one number that works across every timezone. Developers see Unix timestamps in database rows, API responses, server logs, JWT tokens (the iat and exp claims), and file metadata. This tool converts a Unix timestamp (in seconds or milliseconds) to a human-readable date in UTC and your local timezone, and vice versa. It also shows relative time ("3 hours ago") and ISO 8601 format, plus a live-ticking current timestamp for quick reference.
How It Works
- For timestamp → date: paste the Unix timestamp in the input box, choose seconds or milliseconds, and see UTC, local time, ISO 8601, and relative time.
- For date → timestamp: enter a date string or use the datetime picker, and get the Unix timestamp in both seconds and milliseconds.
- The current Unix timestamp ticks live at the top of the page for quick copy.
- All conversions happen instantly in your browser — no server involved.
✨ Key Features
- ✓Convert Unix timestamps to human-readable dates
- ✓Convert dates to Unix timestamps (seconds or milliseconds)
- ✓Supports both seconds (10 digits) and milliseconds (13 digits)
- ✓Shows time in UTC and your local timezone
- ✓Displays ISO 8601 and RFC 2822 formats
- ✓Relative time display ("3 hours ago", "in 2 days")
- ✓Live-ticking current Unix timestamp
- ✓Datetime picker for easy date input
- ✓100% client-side — no data sent to any server
🎯 Common Use Cases
- →Decoding Unix timestamps in API responses and JSON payloads
- →Converting database rows (created_at, updated_at) to readable dates
- →Working with JWT tokens — the iat, exp, nbf claims are Unix timestamps
- →Debugging server logs where events are timestamped in epoch time
- →Setting expiration dates for cookies or cache headers
- →Converting epoch time from Unix shell commands (date +%s)
- →Understanding Git commit timestamps
- →Cross-timezone scheduling and coordination
💡 Advanced Tips & Pro Insights
- ▸Unix timestamps are in seconds, but JavaScript uses milliseconds. If a timestamp has 13 digits, it is in milliseconds (divide by 1000 for seconds). This tool auto-detects in most cases.
- ▸The 32-bit signed Unix timestamp will overflow on January 19, 2038 (the "Y2K38 problem"). Modern 64-bit systems will keep working for ~292 billion years.
- ▸Negative timestamps are valid — they represent dates before the Unix Epoch (January 1, 1970). For example, -86400 is December 31, 1969.
- ▸The ISO 8601 format (e.g. 2026-09-20T15:30:00Z) is the international standard for dates. The "Z" means UTC ("Zulu time").
- ▸For JWT expiration checks: compare the exp claim (in seconds) with Math.floor(Date.now() / 1000) in JavaScript.