Timestamp Converter
Convert Unix timestamps to readable dates and dates to Unix timestamps. Shows UTC, ISO, local and relative time.
Unix timestamps — seconds since January 1, 1970 00:00:00 UTC — are the standard for storing and transmitting time in APIs, databases, and log files. They are compact and timezone-agnostic, but completely unreadable to humans. This Timestamp Converter translates between Unix timestamps and human-readable date formats in both directions, showing UTC time, ISO 8601 format, your local time zone, and a relative time like "3 days ago" — essential for debugging logs, API responses, and database records.
📋 How to Use This Calculator
Click "Use current time →" to pre-fill both fields with the current timestamp. Or enter a Unix timestamp (in seconds) in the left field and click the → button to convert it to readable dates. Alternatively, type a date in ISO format (2025-01-15T10:30:00) or select from the date input in the right field and click → to get the Unix timestamp. All results — Unix seconds, Unix milliseconds, UTC string, ISO 8601, local time, and relative time — appear below and can be individually copied. The tool handles dates from 1970 to year 9999.
💡 Key Facts & Information
Unix time (also called epoch time or POSIX time) counts seconds since 1970-01-01T00:00:00Z, excluding leap seconds. JavaScript's Date.now() returns milliseconds (Unix time × 1000). Databases often store timestamps in one of three formats: Unix integer (SQLite, Redis), ISO 8601 string (PostgreSQL's timestamptz), or RFC 2822 string (email headers). The ISO 8601 format (2025-01-15T10:30:00.000Z) is the most portable and human-readable while remaining machine-parseable. The Z suffix means UTC. Local time shown is your browser's local timezone.