How do I convert a Unix timestamp to a human-readable date?
Paste a Unix epoch timestamp (seconds or milliseconds) and instantly see it as a formatted date and time in your local timezone and UTC. You can also convert any date/time back to an epoch timestamp. The tool shows the current epoch in real time.
1710864000
March 19, 2024 20:00:00 UTC
Epoch / Timestamp Converter
Convert between Unix timestamps and human-readable dates. Supports seconds and milliseconds.
Quick Reference
Unix epoch is the number of seconds since January 1, 1970 00:00:00 UTC. Timestamps with 13+ digits are automatically treated as milliseconds. Negative values represent dates before 1970.
Tips & Best Practices
JavaScript uses milliseconds, Unix uses seconds
Date.now() in JavaScript returns milliseconds since epoch (13 digits like 1710864000000). Most backend systems, APIs, and databases use seconds (10 digits like 1710864000). Mixing them up gives dates in the year 56000+. Always check the digit count: 10 digits = seconds, 13 = milliseconds.
Store timestamps in UTC, display in local time
Always store and transmit timestamps as UTC Unix timestamps or ISO 8601 with timezone (2024-03-19T12:00:00Z). Convert to the user's local timezone only at the display layer. This prevents bugs when users are in different timezones or during daylight saving transitions.
The Year 2038 problem affects 32-bit timestamps
A 32-bit signed integer overflows on January 19, 2038 at 03:14:07 UTC. Systems using 32-bit time_t will wrap to December 13, 1901. Linux kernels 5.6+ are 2038-safe for 64-bit, but embedded systems, IoT devices, and legacy databases may still be vulnerable. Use 64-bit timestamps in new systems.
Leap seconds make UTC tricky for precise timing
Unix timestamps pretend every day has exactly 86400 seconds, ignoring leap seconds. Since 1972, 27 leap seconds have been added. For most applications this doesn't matter, but for financial trading, GPS, or scientific computing, use TAI (International Atomic Time) or handle leap seconds explicitly.
Frequently Asked Questions
What is a Unix epoch timestamp?
How do I convert a Unix timestamp to a human-readable date?
Why do developers use Unix timestamps instead of date strings?
Related Convert Tools
URL Encoder & Decoder
Encode and decode URLs with encodeURIComponent and encodeURI
JSON ↔ YAML Converter
Convert between JSON and YAML for Kubernetes, Docker, and CI/CD configs
HTML Entity Encoder
Encode and decode HTML entities, special characters, and symbols
Image to Base64
Convert images to Base64 data URIs or decode Base64 back to images