Unix Timestamp Converter
Convert epoch time to a human-readable date, or pick a date to get its Unix timestamp. All conversions run in your browser.
Timestamp → Date
Date → Timestamp
Quick Reference — Get Timestamp in Code
Math.floor(Date.now() / 1000) // seconds Date.now() // milliseconds
import time int(time.time()) # seconds
time.Now().Unix() // seconds time.Now().UnixMilli() // milliseconds
time() // seconds (int)(microtime(true) * 1000) // milliseconds
SystemTime::now()
.duration_since(UNIX_EPOCH)
.unwrap().as_secs() // seconds
FAQ
What is a Unix timestamp?
A Unix timestamp is the number of seconds (or milliseconds) that have elapsed since January 1, 1970, 00:00:00 UTC — the "Unix epoch." It is timezone-independent and used universally in APIs, databases, and server logs because it is a single integer that is easy to compare or do arithmetic on.
Seconds or milliseconds — how do I tell the difference?
A 10-digit number is almost certainly seconds (e.g., 1715000000 is roughly May 2024). A 13-digit number is milliseconds (the same value × 1000). JavaScript's Date.now() returns milliseconds; most server-side languages and Unix utilities return seconds.
What is ISO 8601?
ISO 8601 is an international date/time standard. The format looks like 2026-05-13T10:00:00.000Z. The trailing Z means UTC. It is sortable as a string, unambiguous across locales, and recommended for all API data interchange.
Is this tool private?
Yes. All conversions run entirely in your browser using JavaScript. No data is sent to any server. You can even use this tool offline after the page loads.