Epoch Converter
Convert Unix timestamps to readable dates and dates back to timestamps.
Epoch Converter
Convert Unix timestamps to human-readable dates and back.
Values of 12 digits or more are read as milliseconds.
What Epoch Converter does
Logs, databases and APIs store time as a count of seconds since 1 January 1970 UTC. That is convenient for machines and unreadable for people.
This converter translates in both directions and shows the result in both your local time zone and UTC, which is where most timestamp confusion actually originates.
- Convert a timestamp to a local date and a UTC date
- Convert a date back to a Unix timestamp
- Detect millisecond timestamps rather than misreading them as seconds
- Show the current timestamp, updating live
How to use Epoch Converter
- 1
Enter a timestamp
Paste the number from your log or database. A thirteen-digit value is recognised as milliseconds.
- 2
Read both time zones
Compare the local rendering with the UTC rendering. Most reported timestamp bugs are a time-zone difference, not a wrong value.
- 3
Convert the other way
Enter a date to get the corresponding timestamp for use in a query or a test fixture.
Limits and known behaviour
- Local times use your device's time zone and its current daylight-saving rules. A colleague elsewhere will see a different local time for the same timestamp.
- Timestamps are interpreted as UTC-based, which is the standard definition. A system storing local-time epochs will appear to be offset.
- Leap seconds are not represented; Unix time ignores them by definition.
- Very large or negative values may fall outside the range JavaScript dates can represent and will show as an invalid date.
Privacy and data handling
Runs entirely in your browser
- Your input is processed by JavaScript running in this page. The tool sends no request anywhere, so nothing you paste is transmitted or logged by this site.
- Nothing is saved between visits. Closing or reloading the tab discards whatever is in the fields.
Site-wide data handling, including analytics and advertising, is described in the privacy policy.
Frequently asked questions
Is my timestamp in seconds or milliseconds?
A ten-digit number is seconds; a thirteen-digit number is milliseconds. If a date lands in 1970, you have passed milliseconds where seconds were expected. If it lands tens of thousands of years in the future, the reverse.
Why does the date differ from what my database shows?
Almost always a time-zone difference. Compare the UTC rendering with what your database console is displaying, since many clients render timestamps in the session's local zone.