Convert between Unix time and dates
Computers, databases and APIs usually store time as a single number: the Unix timestamp, counting seconds since 1 January 1970 UTC. It is compact and unambiguous, but impossible to read at a glance. This epoch converter translates timestamps into dates you can read — in your own time zone and in UTC — and converts any date back into a timestamp. It runs entirely in your browser using your device's clock and time-zone settings.
Features
- Live current Unix time in seconds, ready to copy.
- Automatic unit detection for seconds (10 digits), milliseconds (13), microseconds (16) and nanoseconds (19).
- Multiple output formats: localised full date, UTC, ISO 8601 (
2026-10-02T08:30:00.000Z), RFC 2822 and a relative description such as "in 2 days". - Date to timestamp with a choice of interpreting the date as local time or UTC, returning both seconds and milliseconds.
Where you meet timestamps
Logs and monitoring. Server logs, analytics events and error trackers often record time as epoch seconds. Converting a value tells you exactly when an incident happened, in your own time zone.
APIs and JSON. Many APIs return fields like "created": 1790000000 or "expires_at". JavaScript's Date.now() and Java's System.currentTimeMillis() return milliseconds, while Unix tools, Python's time.time() and PHP's time() use seconds. Mixing them up is a classic bug.
Tokens and cookies. JSON Web Tokens use iat, nbf and exp claims in epoch seconds. The JWT Decoder converts these automatically.
Databases and spreadsheets. Converting timestamps to dates helps when checking records, and converting dates to timestamps lets you write precise range queries.
Time zones and UTC
A timestamp identifies one instant, regardless of where you are. Time zones only matter when showing it to a person. That is why the same timestamp displays as different local times in Tokyo and New York, while the UTC line stays the same. When you convert a date to a timestamp, be explicit: "9:00" in local time and "9:00 UTC" produce different numbers unless you live in a UTC time zone.
To compare times across cities, use the Time Zone Converter. To count the days between two dates, try the Date Difference Calculator.