Unix Timestamp Converter
Convert between Unix timestamps and human-readable dates. Updates in real time.
What is a Unix timestamp and why do APIs use them?
A Unix timestamp (also called epoch time or POSIX time) is a single integer representing the number of seconds elapsed since January 1, 1970 at 00:00:00 UTC — a moment known as 'the Unix epoch'. The convention dates back to the early Unix operating system at Bell Labs in the 1970s. Its value over human-readable dates is that it's a single number, timezone-agnostic, easy to compare and arithmetic on, and unambiguous across systems. Every modern database, log file, JWT, OAuth token, and most APIs use Unix timestamps internally. The 'exp' claim in a JWT is a Unix timestamp; the 'created_at' in most APIs is a Unix timestamp or ISO 8601 string derived from one; file modification times on Linux/macOS are stored as Unix timestamps. There are two common variants you must distinguish: seconds (the original Unix convention, used in JWTs, OAuth, Linux file metadata) and milliseconds (used in JavaScript's Date.now(), Java's System.currentTimeMillis(), and many modern APIs). A 10-digit timestamp is seconds; a 13-digit timestamp is milliseconds. This tool handles both — paste either format in either field and we'll auto-detect and convert. The other concept worth knowing: ISO 8601 is the standard human-readable format (2025-12-31T23:59:59Z) — strictly ordered alphabetically and parseable everywhere. When given a choice between storing timestamps as Unix integers or ISO 8601 strings, prefer Unix for performance and ISO 8601 for human readability.
Common use cases
Decode the 'exp' or 'iat' claim from a JWT payload to see when it expires.
Convert API response timestamps to your local timezone for debugging.
Generate timestamps for setting cookie expiry headers.
Translate database timestamps (epoch seconds) to ISO 8601 for log parsing.
Calculate elapsed time between two events by subtracting their Unix timestamps.
Schedule cron jobs using the at-command with explicit Unix timestamps.
Frequently asked questions
Why 1970?▼
Seconds or milliseconds?▼
How do I see this timestamp in my timezone?▼
What's the difference between Unix time and UTC?▼
How are leap seconds handled?▼
Can Unix timestamps be negative?▼
What's an ISO 8601 timestamp?▼
Related tools
JWT Decoder
Decode JSON Web Tokens (JWT) instantly — inspect the header, payload, and signature claims. Runs entirely in your browser; tokens never leave your device. Safe for production secrets.
JSON Formatter & Validator
Format, validate, and minify JSON instantly. Catches syntax errors with line numbers, pretty-prints with adjustable indent, supports large payloads. Runs in your browser — no upload.
XML Formatter & Beautifier
Format and beautify XML documents — proper indentation, line breaks, namespace handling. Useful for SOAP responses, sitemaps, RSS feeds, and Android resource files.
Base64 Encoder & Decoder
Encode and decode Base64 strings.
URL Encoder & Decoder
Encode/decode URL-safe strings.
HTML Entity Encoder & Decoder
Convert special characters to/from HTML entities.