Unix Timestamp Converter

Convert Unix epoch timestamps (seconds or milliseconds) to UTC and local time, and dates back to epoch.

๐Ÿ”’ Runs locally โ€” your input never leaves this browser tab

Current Unix time: โ€”

Detected unit
UTC
Your local time
ISO 8601
Relative
Seconds
Milliseconds

Get the current timestamp

Bashdate +%s
Bash โ†’ datedate -d @1700000000 (GNU) / date -r 1700000000 (macOS)
PHPtime() / now()->timestamp (Laravel)
JavaScriptMath.floor(Date.now() / 1000)
Pythonint(time.time())
MySQL / MariaDBSELECT UNIX_TIMESTAMP(); / FROM_UNIXTIME(ts)
PostgreSQLSELECT extract(epoch FROM now());

Seconds vs milliseconds

Unix time counts seconds since 1970-01-01 00:00:00 UTC. A 10-digit number is seconds; a 13-digit number is milliseconds (JavaScript, Java). This tool detects the unit automatically.

The year 2038 problem

Signed 32-bit timestamps overflow at 2147483647 โ€” 2038-01-19 03:14:07 UTC. Check old embedded systems and INT database columns; use 64-bit types.