Unix Timestamp Converter
Converts a timestamp to a date and back in one field, covering seconds, milliseconds, microseconds and nanoseconds, ISO 8601 and plain dates.
Accepts seconds, milliseconds, microseconds and nanoseconds, ISO 8601, dates like 08/25/2026 2:30 PM, and RFC 2822. The conversion direction is detected automatically.
Point in time
About this day
Period boundaries
Note
The same moment in code
What a Unix timestamp is
It is the number of seconds since midnight on January 1, 1970, UTC. A single number pins down a moment in time with no time zone and no date format attached, which is why databases, logs, and API responses store time this way.
One field, both directions
Paste a number and get a date. Paste a date and get a number. The tool understands ISO 8601 with or without an offset, notation like 25.08.2026 14:30, the RFC 2822 format from email headers, and the output of Date.toString().
Seconds or milliseconds
This is the most common timestamp mix-up. You can tell the units by the length of the number:
- 10 digits — seconds;
- 13 digits — milliseconds;
- 16 digits — microseconds;
- 19 digits — nanoseconds.
In JavaScript, Date.now() returns milliseconds; in PHP, time() returns seconds; in Python, time.time() returns seconds with a fractional part.
The units are picked by the size of the number, and the result shows what the date would be in the other units. If the guess goes wrong, you can set the units manually.
Rate this tool
Help us get better
Tell us what was missing.
Other tools
JSON Formatter
Format and repair JSON in the browser, flagging duplicate keys and long numbers
Regex Tester
Regex testing with a plain-language breakdown and hang protection
JWT Decoder
JWT parsing with fields explained and signature verification
CSV to JSON
A table to JSON with honest types and a reverse check
JSON to CSV
JSON to a table for Excel, with verification and formula protection
SQL Formatter
A readable query layout, verified against the source, with risky spots flagged
XML Formatter
Readable XML, errors explained with a hint, verified against the source
XML Validator
Markup, XSD schema, sitemap, YML and RSS rules, with the path to each error