Unix Timestamp Converter Guide: How to Convert Timestamps to Dates Online
If you've ever worked with APIs, databases, or authentication tokens, you've encountered Unix timestamps — those long numbers like 1700000000 that represent dates and times. They're the universal language of time in computing, but they're not human-readable. A timestamp converter bridges that gap, translating between machine-friendly integers and human-readable dates instantly.
What is a Unix Timestamp?
A Unix timestamp (also called Epoch time or POSIX time) is the number of seconds that have elapsed since January 1, 1970, 00:00:00 UTC — the Unix epoch. This starting point is the same across all systems, making timestamps inherently timezone-independent.
Timestamp 0 = Jan 1, 1970 00:00:00 UTC (Unix Epoch)
Timestamp 1700000000 = Nov 14, 2023 22:13:20 UTC
Why 1970? It was a convenient reference point when Unix was developed at Bell Labs in the early 1970s. Today, timestamps are used everywhere because they're simple integers that work across programming languages and databases without timezone conversion headaches.
Seconds vs Milliseconds: The Common Gotcha
This is the #1 timestamp bug developers hit: seconds vs milliseconds. Unix timestamps are traditionally in seconds, but JavaScript's Date.now() returns milliseconds. Many APIs and databases also use millisecond precision. How to tell them apart:
- 10-digit number (e.g.,
1700000000) → seconds - 13-digit number (e.g.,
1700000000000) → milliseconds
Using the wrong one gives you dates off by a factor of 1000 — either dates in 1970 (if you treat seconds as ms) or dates in the year 55,922 (if you treat ms as seconds). A good online timestamp converter auto-detects the format to prevent this error.
Common Timestamp Use Cases
- Database Records —
created_at,updated_atcolumns often store timestamps. MySQL'sUNIX_TIMESTAMP()and PostgreSQL'sEXTRACT(EPOCH FROM ...)functions work with timestamps natively. - API Responses — REST APIs frequently return timestamps for efficiency. The JSON response
{"created": 1700000000}is smaller and faster to parse than{"created": "2023-11-14T22:13:20Z"}. - JWT Tokens — The
iat(issued at) andexp(expiration) claims in JWTs are Unix timestamps. Decode a JWT and you'll see them in the payload. - Log Files — Server logs often prefix each line with a timestamp.
[1700000000] ERROR: connection refused— convert it to see exactly when the error occurred.
Timezone Handling
Unix timestamps are always UTC. When you convert a timestamp to a human-readable date, the converter applies your local timezone offset. A timestamp of 1700000000 represents the same exact moment everywhere on Earth — but it displays as different local times:
- UTC: 2023-11-14 22:13:20
- New York (UTC-5): 2023-11-14 17:13:20
- Tokyo (UTC+9): 2023-11-15 07:13:20
This is why timestamps are ideal for storing dates — they're unambiguous. "November 14, 2023" means different things in different timezones, but 1700000000 is always the same instant.
Math.floor(Date.now() / 1000) in JavaScript. Bookmark a timestamp converter for when you need to read that value as a human date.Need to convert a timestamp right now?
🕐 Open Timestamp Converter →