Unix Timestamp Converter
Convert a Unix timestamp (in seconds) to a UTC date and back, with two linked fields that update each other as you type.
How to use this tool
- 1
Type or paste a Unix timestamp in seconds into the top field — the bottom field updates to the matching UTC date.
- 2
Or type a date into the bottom field — the top field updates to the matching Unix timestamp in seconds.
- 3
Click 'Now' to fill both fields with the current moment.
- 4
Select and copy the value you need from either field.
What is a Unix timestamp, and what exactly does this converter do?
A Unix timestamp (also called epoch or POSIX time) is a single integer counting the seconds elapsed since January 1, 1970 at 00:00:00 UTC — the 'Unix epoch'. Because it is one timezone-agnostic number, it is easy to store, compare, and do arithmetic on, which is why databases, log files, JWT 'exp'/'iat' claims, and most APIs use it internally. Be aware of a common pitfall: classic Unix time is in seconds (a 10-digit number today), but JavaScript's Date.now() and Java's System.currentTimeMillis() return milliseconds (13 digits). This tool treats the timestamp field strictly as seconds — it multiplies your input by 1000 internally, so pasting a 13-digit millisecond value yields a date thousands of years in the future. Divide milliseconds by 1000 first. The date output is always rendered in UTC using JavaScript's toISOString(), producing strict ISO 8601 ending in 'Z' (for example, 2025-12-31T23:59:59.000Z); it never shows your local timezone. The reverse direction is more lenient: when you type into the date field it calls the browser's Date parser, which accepts ISO 8601 but also other engine-dependent formats like '2025/01/01' or RFC 2822 strings, so results for non-ISO input can vary between browsers. For predictable behavior, stick to ISO 8601.
Common use cases
Convert an 'exp' or 'iat' value you have already pulled out of a JWT into a readable UTC date to check expiry.
Turn an epoch-seconds column from a database or log line into an ISO 8601 UTC date you can read.
Generate a current Unix timestamp with the 'Now' button to hardcode into a test fixture or config.
Sanity-check a timestamp returned by an API by seeing the UTC date it maps to.
Confirm whether a suspicious value is seconds or milliseconds by watching whether the resulting date looks plausible.
Compute a future or past instant by editing the seconds value and reading the resulting UTC date.
Frequently asked questions
Does the timestamp field accept milliseconds?▼
What timezone does the date output use?▼
Which date formats can I type into the date field?▼
Is my data sent anywhere?▼
Why does the converter use 1970 as its starting point?▼
Can I enter a negative or pre-1970 timestamp?▼
How are leap seconds handled?▼
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.