Timestamp Converter
Unix time is seconds (sometimes milliseconds) since 1970-01-01 UTC. Logs, JWTs, and cookie Expires headers all disagree about units and time zones. This page converts among Unix, ISO 8601, UTC, and your local clock so you can see whether a token is expired or a cron just looks expired.
What the timestamp converter is for
Systems store time as Unix timestamps — seconds since 1 January 1970 — because a single number avoids all timezone and formatting ambiguity. People cannot read them.
Converting is a constant need when reading logs, debugging token expiry, or working out whether an event happened before or after another.
Common uses
- Reading the exp and iat claims from a JWT
- Interpreting timestamps in application or server logs
- Checking when a token, certificate, or cache entry expires
- Converting a date into a timestamp for an API query
What the output means in the real world
Each row is the same instant in another notation. Use ISO 8601 with an offset when you write APIs; use Unix seconds when a JWT claim or a database column demands it. If a value is five digits or thirteen, you likely have days or milliseconds, not seconds. Do not treat the converted clock as legal evidence of a user's local time.
How this fits into real work
JWT exp is almost always seconds. JavaScript Date.now() is milliseconds. Multiplying or dividing by 1000 in the wrong direction is the classic 'token expired 50 years ago' bug.
PCI and audit logs should record UTC. Local-only timestamps make it impossible to line up a VPN session in Sydney with a SIEM in Virginia after daylight-saving shifts.
Leap seconds and 32-bit Year 2038 issues still bite embedded devices. If a gadget shows 1901 or 2038, you are looking at a signed 32-bit overflow, not a user error.
How to use this tool
- Paste a Unix timestamp to see it as a readable date, or pick a date to get the timestamp.
- Check whether your value is in seconds or milliseconds — a 13-digit number is milliseconds.
- Compare the UTC and local readings, since servers almost always log in UTC.
Tips
- JWT claims are in seconds; JavaScript's Date.now() returns milliseconds. Mixing them produces dates in 1970 or the far future.
- Always reason about server events in UTC and convert only for display.
Privacy & how it works
Everything happens inside your browser. The values you type are held in page memory only, are never sent to a server, and disappear when you close the tab. You can confirm this in your browser's network tab: the only request a tool makes is one that names the tool for a usage count, with nothing you typed in it. The tools also work with the internet disconnected.
Frequently asked questions
- Seconds or milliseconds?
- A ten-digit number is seconds, which is the Unix convention used by JWTs and most APIs. Thirteen digits is milliseconds, which JavaScript uses.
- What is the 2038 problem?
- Systems storing timestamps in a signed 32-bit integer overflow in January 2038. Modern systems use 64-bit values and are unaffected.
Browse other tools
All tools run entirely in your browser — nothing you type is sent to a server, except the optional HIBP 5-character hash prefix.