Unix Timestamp Converter
Convert any Unix timestamp to a human-readable date and time — or turn any date back into a timestamp — instantly, in any timezone. Supports all timestamp formats: 10-digit (seconds), 13-digit (milliseconds), 16-digit (microseconds), and 19-digit (nanoseconds). No account needed, no rate limits. Just paste and convert.
Convert Timestamp to Datetime
Paste your Unix timestamp below and instantly see the corresponding date and time in any timezone.
Datetime to Timestamp Converter
Select any date and time to generate the corresponding Unix timestamp for your applications and databases.
What is a Unix timestamp?
A Unix timestamp — also called epoch time, POSIX time, or Unix time — is the number of seconds that have elapsed since January 1, 1970, at 00:00:00 UTC. This starting point is called the Unix epoch.
It's one of the most widely used ways to represent time in software because it's timezone-neutral, language-agnostic, and trivially easy to compare, sort, and do arithmetic on. A timestamp is just a number — no formatting ambiguity, no locale differences.
Example: The Unix timestamp 1700000000 corresponds to November 14, 2023, 22:13:20 UTC.
Seconds vs milliseconds vs microseconds — which do you have?
Not all Unix timestamps are the same length. The number of digits tells you the unit:
| Digits | Unit | Example | Typical use |
|---|---|---|---|
| 10 | Seconds | 1700000000 | Linux/Unix systems, most databases, APIs |
| 13 | Milliseconds | 1700000000000 | JavaScript (Date.now()), browser events, logs |
| 16 | Microseconds | 1700000000000000 | High-precision logging, financial systems |
| 19 | Nanoseconds | 1700000000000000000 | System clocks, Go's time.Now().UnixNano() |
Our converter auto-detects the format based on digit count, so you can paste any timestamp and get the right result without manually selecting the unit.
How to convert a Unix timestamp to a date (in common languages)
If you need to do this programmatically rather than with a tool, here are the one-liners for the most common languages and environments:
JavaScript
// Seconds to date
new Date(1700000000 * 1000).toISOString()
// → "2023-11-14T22:13:20.000Z"
// Milliseconds to date (Date.now() format)
new Date(1700000000000).toISOString()
// → "2023-11-14T22:13:20.000Z"Python
from datetime import datetime, timezone
# Seconds
datetime.fromtimestamp(1700000000, tz=timezone.utc)
# → datetime(2023, 11, 14, 22, 13, 20, tzinfo=datetime.timezone.utc)
# Milliseconds
datetime.fromtimestamp(1700000000000 / 1000, tz=timezone.utc)PHP
// Seconds
date('Y-m-d H:i:s', 1700000000);
// → "2023-11-14 22:13:20"MySQL
-- Seconds
SELECT FROM_UNIXTIME(1700000000);
-- → 2023-11-14 22:13:20Go
// Seconds
time.Unix(1700000000, 0).UTC()
// Nanoseconds
time.Unix(0, 1700000000000000000).UTC()FAQs
The current Unix timestamp changes every second, so the best way to check is to use the converter above — it shows the live count in seconds since January 1, 1970 UTC.
In code:
- JavaScript: Math.floor(Date.now() / 1000)
- Python: import time; int(time.time())
- PHP: time()
- Bash: date +%s