Convert epoch time to human-readable date
Epoch time (Unix timestamp) measures elapsed time as the total number of seconds since 00:00:00 UTC on January 1, 1970. Whether you are troubleshooting server logs, querying SQL databases, inspecting JWT tokens, or debugging API responses, ToolCrix provides an instant, bidirectional epoch converter that runs entirely in your browser with zero latency and complete privacy.
How to convert Epoch to Date
- Paste your numeric epoch timestamp into the Timestamp → Date field above.
- ToolCrix auto-detects whether your input is in seconds (10 digits) or milliseconds (13 digits).
- Instantly read the converted date in UTC, your local timezone, ISO 8601, RFC 2822, and relative time (e.g. ‘3 hours ago’).
- Click Copy all formats for 1-click clipboard export.
How to convert Date to Epoch
- Pick a date and time using the Date → Timestamp input, or click Now, Start of Today, or End of Today.
- The exact epoch timestamp in both seconds and milliseconds is generated instantly.
Developer Epoch Code Cheat Sheet
- JavaScript:
Math.floor(Date.now() / 1000)(seconds) orDate.now()(ms) - Python:
import time; time.time()ordatetime.datetime.fromtimestamp(ts, tz=datetime.timezone.utc) - Go:
time.Now().Unix()ortime.Unix(ts, 0).UTC() - Rust:
chrono::Utc::now().timestamp() - Bash:
date +%s(GNU/Linux & macOS) - SQL:
SELECT UNIX_TIMESTAMP();(MySQL) orSELECT EXTRACT(EPOCH FROM NOW());(PostgreSQL)
Frequently asked questions
What is epoch time? Epoch time (also known as Unix time or POSIX time) is the number of seconds that have elapsed since Thursday, 1 January 1970 00:00:00 UTC, minus leap seconds.
How do I tell if an epoch timestamp is in seconds or milliseconds? A 10-digit timestamp (e.g., 1700000000) is in seconds. A 13-digit timestamp (e.g., 1700000000000) is in milliseconds. Values with 16 digits are microseconds, and 19 digits are nanoseconds. ToolCrix automatically detects the scale.
What is the Year 2038 Problem? On January 19, 2038, at 03:14:07 UTC, 32-bit signed integers reach their maximum value (2,147,483,647 seconds) and wrap around to negative numbers. Modern 64-bit systems can store timestamps for over 292 billion years without issue.
Are epoch timestamps timezone-dependent? No — epoch timestamps are fundamentally timezone-independent because they count absolute seconds from UTC midnight. The timestamp is identical in New York, London, Tokyo, and Sydney at any exact moment.