Input
Result
The result will appear here.Your runs
Only runs that cost points are saved.
Sign in to keep a history of your runs.
Logs, JWTs and database rows record time as an integer, and reading them means converting. This goes both ways between epoch time and a readable date, in UTC, your local zone or Asia/Shanghai, and it detects whether an integer is seconds or milliseconds — the mistake that puts events in 1970 or in the year 55000.
How it works
- Seconds and milliseconds are distinguished by magnitude, and the guess is shown so you can override it.
- The current timestamp updates live, for when you need one right now.
- Conversion uses the browser's timezone database, so historical daylight-saving rules apply correctly.
Where your data goes
Nowhere. This tool runs entirely in your browser: the text you paste is processed by the page and is never transmitted to a server or written to a log.
When a run costs points, a one-line summary is saved to your own history so you can find it again. The summary records the shape of the run — sizes, counts, the values you looked up — never the content you pasted.
What it costs
This tool is free, with no sign-in and no points.
Common questions
- How do I tell seconds from milliseconds?
- By length. A current timestamp in seconds is 10 digits; in milliseconds it is 13. A 13-digit value read as seconds lands tens of thousands of years in the future.
- What is the 2038 problem?
- A signed 32-bit timestamp overflows on 19 January 2038. Systems storing epoch time in a 32-bit integer wrap to 1901. Anything modern uses 64 bits and is unaffected for longer than the universe has existed.
- Why does my date shift by an hour?
- Daylight saving. A timestamp is an absolute instant; the local time it displays as depends on the rules in force on that date in that zone, which change.
The open-source behind it
This tool is a self-contained implementation. date-fns/date-fns (MIT) does the same job as a library — if you need this behaviour inside your own program, start there rather than calling a web page.
date-fns/date-fnsAlso known as
- unix timestamp converter
- epoch converter
- timestamp to date
- epoch time
- unix time