Unix Timestamp Converter
Convert Unix epoch timestamps to readable dates and back. Seconds and milliseconds are detected automatically.
Current Unix time: … seconds · … ms
About Unix time
Unix time (epoch time) counts the seconds elapsed since 00:00:00 UTC on 1 January 1970, ignoring leap seconds. It's the standard machine representation of time across operating systems, databases, and APIs. JavaScript and Java use milliseconds since the epoch — a 13-digit number instead of 10 digits.
Frequently asked questions
How do I tell seconds from milliseconds?
Current timestamps in seconds have 10 digits (until the year 2286); in milliseconds, 13 digits. This tool detects the unit from the number's size automatically.
How do I get the current timestamp in code?
JavaScript: Math.floor(Date.now()/1000) · Python: int(time.time()) · PHP: time() · SQL (Postgres): extract(epoch from now()) · Shell: date +%s.
What is the year-2038 problem?
Systems storing Unix time in a signed 32-bit integer overflow on 19 January 2038. Modern 64-bit systems are unaffected.
Last updated: 2026-07-11