Unix Timestamp
Convert between timestamps and dates
Timestamp → Date
Date → Timestamp
About This Tool
Your API response has created_at: 1716000000. Your log file shows a timestamp of 1716123456789. What time does that actually mean? Paste the number here and get a human-readable date instantly. Or go the other direction — type a date and get the timestamp back. Seconds and milliseconds both work.
Features
- ✓Paste and convert instantly — Enter a Unix timestamp and get the date and time right away, or input a date to convert it to a timestamp. Both directions work.
- ✓Seconds vs milliseconds auto-detected — 10-digit inputs are treated as seconds, 13-digit as milliseconds. No manual switching needed.
- ✓UTC and local time shown together — Results display both UTC and your browser's local timezone side by side, so you don't have to calculate the offset yourself.
- ✓Current time shortcut — Hit "Current Time" to fill in the current timestamp — useful as a reference point when comparing timestamps.
- ✓Runs entirely locally — All calculations happen in your browser with no network requests.
FAQ
- What is a Unix timestamp?
- An integer counting the seconds (or milliseconds) since the Unix Epoch: January 1, 1970, 00:00:00 UTC. It's timezone-agnostic, which is why every programming language and database uses it — you can always compare two timestamps directly without worrying about timezones.
- How do I get the current Unix timestamp in JavaScript?
- Date.now() gives you milliseconds (13 digits). Math.floor(Date.now() / 1000) gives you seconds (10 digits). new Date().getTime() is the same as Date.now() — both return milliseconds.
- What is the Year 2038 problem?
- Old 32-bit systems stored Unix timestamps as signed 32-bit integers, which max out at 2,147,483,647 — January 19, 2038. After that, the counter overflows to a negative number, which can cause crashes or wrong dates. Modern 64-bit systems aren't affected.
- Why does the converted time differ from my clock?
- Timestamps are always UTC-based. If you're in a timezone offset from UTC (like UTC+8 for Taipei), your local time is ahead or behind. The tool shows both so you can see exactly what's happening — both values are correct, just different timezones.
Further Reading
- wikipediaUnix time — Wikipedia
- mdnDate — MDN Web Docs