Unix Timestamp Converter
Convert between Unix timestamps and human-readable dates. 100% client-side processing.
No data sent to serverRelated Tools
What is a Unix Timestamp?
A Unix timestamp (also called Epoch time or POSIX time) is the number of seconds elapsed since the Unix Epoch: 1970-01-01T00:00:00Z (UTC). The choice of date traces back to the original Unix implementation at Bell Labs (1969–1971) — January 1, 1970 was a convenient round number close to the system's birth. It's been the de facto time standard in computing for over 50 years.
Why use Unix time over human dates?
- Timezone-free — single integer, no DST or locale ambiguity
- Comparable — direct integer comparison gives chronological order
- Compact — 4 or 8 bytes vs ~25 chars for ISO 8601
- Arithmetic-friendly — duration = end − start, no calendar math
Where you'll see Unix timestamps
JWT iat/exp claims, MySQL UNIX_TIMESTAMP(), PostgreSQL EXTRACT(EPOCH ...), Redis TTL, ls -l --time-style=+%s, log files (rsyslog, syslog), cron schedules, AWS CloudWatch metrics, blockchain block timestamps. Mostly seconds; sometimes milliseconds (Java's System.currentTimeMillis(), JavaScript's Date.now()).
Time Format Reference
Unix timestamp resolution
Seconds: 1700000000 (10 digits, ~Nov 2023) Milliseconds: 1700000000000 (13 digits, JS Date.now()) Microseconds: 1700000000000000 (16 digits, Python time_ns / 1000) Nanoseconds: 1700000000000000000 (19 digits, Go time.UnixNano)
ISO 8601 — the human-readable standard
2026-05-06T14:30:00Z UTC ("Z" = Zulu time)
2026-05-06T14:30:00.123Z with milliseconds
2026-05-06T14:30:00+09:00 with timezone offset
2026-05-06 date only
P1Y2M10DT2H30M ISO 8601 duration (1 year 2 months 10 days...)RFC formats
RFC 9110 (HTTP): Wed, 06 May 2026 14:30:00 GMT RFC 2822 (email): Wed, 06 May 2026 14:30:00 +0000 RFC 3339: 2026-05-06T14:30:00.123Z (subset of ISO 8601)
Conversion in popular languages
JavaScript: Date.now() → ms timestamp
new Date(ts * 1000).toISOString()
Python: time.time() → float seconds
datetime.fromtimestamp(ts).isoformat()
Go: time.Now().Unix() → seconds (int64)
time.Unix(ts, 0).Format(time.RFC3339)
Bash: date +%s → seconds
date -u -d @1700000000 → UTC dateFAQ
What is the difference between seconds and milliseconds?
Unix timestamps in seconds have 10 digits (e.g., 1700000000); milliseconds have 13 digits (e.g., 1700000000000). This tool auto-detects. JavaScript's Date uses milliseconds; most other languages use seconds.
What is the Year 2038 problem?
Signed 32-bit integers max out at 2147483647 — which corresponds to 2038-01-19T03:14:07Z. Legacy systems storing Unix time in 32-bit signed integers will overflow then. Modern systems use 64-bit integers, pushing the next overflow ~292 billion years out.
Why is "Z" used for UTC?
"Z" stands for "Zulu time" — the NATO phonetic alphabet letter for the +0 timezone. It's a one-character shorthand for +00:00 in ISO 8601.
Should I store dates as Unix timestamps or ISO strings?
Unix timestamps for compactness and arithmetic — preferred for high-frequency time fields (event logs, metrics). ISO 8601 for human-readable APIs and debugging — preferred for user-facing fields (created_at, updated_at). Either way, always UTC at storage; convert to local only at display.
How do I get the current timestamp?
JavaScript: Math.floor(Date.now() / 1000). Python: int(time.time()). Go: time.Now().Unix(). Bash: date +%s. The live timestamp at the top of this tool also shows the current second.
⚠️ Reference Only
Output is generated based on your input and is provided for reference. Results may vary depending on your specific use case, edge cases, or environment-specific behavior. We do not guarantee accuracy of conversions, validations, or computed values.
Always verify critical outputs against official documentation or production environments. We are not responsible for any decisions or losses based on these tool results.
📖 Related Guides
Regex Lookahead and Lookbehind Explained
Master regex zero-width assertions: positive/negative lookahead and lookbehind.
Unix Timestamp vs ISO 8601 — Which to Use?
Compare Unix timestamps and ISO 8601 dates for storage, APIs, and human readability.
HTTP Status Codes — Complete Reference (1xx–5xx)
RFC 9110 with real-world API patterns. 401 vs 403, 409 vs 422, 502 vs 503 vs 504.