A free epoch and Unix timestamp converter: online here, offline in your menu bar.
Paste a timestamp in seconds, milliseconds, microseconds or nanoseconds and get the local date, UTC and relative time, with the unit it assumed shown next to it. Or pick a date to convert it to Unix time. It runs in your browser.
Convert a Unix timestamp now
Paste an epoch in seconds, milliseconds, microseconds or nanoseconds, or pick a date. It all happens in your browser.
100% local · nothing leaves this tab
Want it offline? It lives in your menu bar.
Paste a Unix timestamp in seconds, milliseconds, microseconds or nanoseconds and read it as a local date, UTC and “in 3 hours”. Or pick a date and get the epoch back. It is the Time tab of Dev tools, one click away in your menu bar on Mac and Windows.
A timestamp in, every reading out.
Open Dev tools from the menu bar and switch to the Time tab. Paste the number from a log line, a database row or an API response and you get the local date and time, the UTC value in ISO 8601, a relative time and the value in seconds and milliseconds. Now fills in the current epoch, for when you need it in a query or a test.
Below it, Date to epoch goes the other way. It opens on the current moment in your time zone, to the second, and gives you the seconds and milliseconds to copy.
- Local date, UTC ISO 8601 and relative time together
- Seconds and milliseconds, whichever your code wants
- Next to a JWT decoder that shows exp and iat as dates
The wrong unit gives a believable wrong date.
A timestamp does not say what unit it is in. Read a microsecond value from Postgres or a Chrome trace as milliseconds and you do not get an error: you get a date in the year 58043, said with total confidence. Read milliseconds as seconds and you land thousands of years away.
The Time tab guesses the unit from the size of the number, because a date between 1970 and around 2100 falls in a different range for each one, and then it shows its guess under “Read as”. If the date looks wrong, you see why at a glance.
One tab of Dev tools, inside one free app.
The epoch converter is the Time tab of Dev tools, which comes built into Webstarted Toolbox: one menu bar icon (system tray on Windows) with a popover full of small tools, next to a JSON formatter, Base64, hashes and UUIDs.
Questions, answered.
What is an epoch or Unix timestamp?
The number of seconds since January 1, 1970 at 00:00 UTC. Most systems store dates that way, but many count milliseconds instead (JavaScript, Java), and some count microseconds or nanoseconds (databases, tracing tools). The same instant can be a 10, 13, 16 or 19-digit number.
How does it know if my timestamp is in seconds or milliseconds?
By its size. A date between 1970 and roughly 2100 falls in a different range for each unit, so the tab picks the unit from the magnitude and shows which one it used under “Read as”. If you paste microseconds by mistake, you see “microseconds” instead of a plausible date in the year 58043.
Can it convert a date back to a timestamp?
Yes. The second half of the tab, Date to epoch, takes a date and time (to the second) in your local time zone and gives you both the seconds and the milliseconds. It opens on the current moment, so “what is the epoch now” is answered as soon as you look.
Does it show UTC or my local time?
Both. For a timestamp you get the full local date and time, the UTC value in ISO 8601, a relative time like “in 3 hours” or “2 days ago”, and the value in seconds and in milliseconds. A Now button fills in the current epoch.
Does it work offline?
Yes. In the app, the Time tab of Dev tools does the math on your machine with no network calls. The converter on this page runs in your browser and sends nothing either.
Does it work on Windows?
Yes. Webstarted Toolbox is the same free app on macOS 12+ and Windows 10+, from the menu bar or the system tray.
Is it free?
Yes. The epoch converter is the Time tab of Dev tools, which comes built into Webstarted Toolbox: free, no account.
Get Webstarted Toolbox
Free to use. The epoch converter, Dev tools and every other widget included. macOS 12+ and Windows 10+.
One icon, many small tools
This is one of the 49 widgets in Webstarted Toolbox, the free all-in-one menu bar app for Mac and Windows. Here are the rest: