Convert Unix Time to Human Time
Convert Unix timestamp (epoch seconds) to human-readable date and time. Supports seconds and milliseconds. 100% client-side.
Paste a Unix timestamp and get a human-readable date back — local time, UTC, ISO 8601, day of the week, and a relative label like "3 days ago." Seconds or milliseconds, the tool figures it out from the digit count. And everything runs in your browser. Nothing gets uploaded.
How It Works
The tool takes your numeric Unix timestamp and feeds it to JavaScript's Date constructor. If the number has more than 10 digits, it's treated as milliseconds — otherwise it gets multiplied by 1000 first. From there, the browser's built-in Intl formatters produce the local time, UTC, ISO string, and a relative "time ago" label. No external libraries involved.
Examples
Checking a Server Log Timestamp
Your error log says something crashed at 1714502400. When was that, exactly?
1714502400
May 1, 2024 12:00:00 AM UTC
Wednesday
JavaScript Millisecond Timestamp from an API
A JSON response has createdAt: 1609459200000. That's 13 digits — milliseconds, not seconds.
1609459200000
Jan 1, 2021 12:00:00 AM UTC
Friday
Negative Timestamp — A Date Before 1970
Some legacy systems store dates before the Unix epoch as negative numbers. You need to confirm what date -86400 actually represents.
-86400
Dec 31, 1969 12:00:00 AM UTC
Wednesday
Who Uses This
Translating epoch timestamps from database records, API responses, and server logs into dates they can actually read.
Verifying that expiration dates, scheduled jobs, and audit trail entries land on the correct calendar day.
Decoding JWT exp and iat claims to confirm token validity windows during incident reviews.
Spot-checking epoch columns in CSVs or data exports before running queries or building charts.
Common Mistakes
If you paste a 13-digit millisecond timestamp into a tool that expects seconds, you'll get a date thousands of years in the future. This tool auto-detects the format, but double-check when using other converters.
Unix timestamps are always UTC. If your local time is UTC+5, the converted local time will be 5 hours ahead of the UTC result. People often compare a UTC timestamp to a local clock and think the data is wrong. It is not — they're just in different zones.
Copying from a terminal or spreadsheet sometimes pulls in trailing spaces, quotes, or commas. Strip those out before converting — a stray comma will give you an invalid result or the wrong date entirely.
Technical Details
- Processing: 100% client-side — nothing leaves your browser
- Browser Support: Chrome, Firefox, Safari, Edge
- Input Range: Any valid 32-bit or 64-bit Unix timestamp (negative values supported)
- Millisecond Detection: Automatic — timestamps over 10 digits are treated as ms
- Output Formats: Local time, UTC, ISO 8601, relative time, day of week
Frequently Asked Questions
What is a Unix timestamp?
It's the number of seconds since midnight on January 1, 1970 UTC — sometimes called "epoch time." Most programming languages, databases, and APIs use it because it's a single number with no timezone ambiguity. Right now your current Unix timestamp is ticking upward by one every second.
How do I tell if a timestamp is in seconds or milliseconds?
Count the digits. A seconds-based timestamp is 10 digits long (like 1714502400), and a millisecond one is 13 digits (like 1714502400000). JavaScript's Date.now() returns milliseconds. Python's time.time() returns seconds with decimals. This tool figures it out automatically.
Can I convert dates before 1970?
Yes. Negative timestamps represent dates before the epoch. For instance, -86400 is December 31, 1969. Some older systems and historical datasets use negative values, and this tool handles them fine.
Why does the converted time look different from what I expected?
Almost always a timezone issue. Unix timestamps are UTC, but your browser shows local time based on your device settings. If you're in UTC+9, a midnight UTC timestamp shows up as 9:00 AM local. Check the UTC line in the results — that's the ground truth.
Is there a maximum Unix timestamp this tool can handle?
JavaScript's Date object works reliably up to ±8,640,000,000,000,000 milliseconds from the epoch — that's roughly year 275,760 AD. The classic "Year 2038 problem" only affects 32-bit systems. This browser-based tool uses 64-bit numbers, so you won't run into that limit here.