Epoch Converter
Convert between UNIX epoch (seconds/ms) and human-readable dates.
Milliseconds
0
Local ISO
1970-01-01T00:00:00.000
Local
Thu Jan 01 1970 00:00:00 GMT+0000 (Coordinated Universal Time)
Informational only; verify critical results independently.
How to use
- Paste a Unix timestamp (seconds or milliseconds) from logs or APIs.
- Or pick a calendar date/time and convert to epoch for code.
- Confirm whether your source uses seconds (10 digits) or ms (13 digits).
- Read the ISO-8601 or local string the tool shows for humans.
- Copy values into JWT exp fields, database queries, or bug reports.
- Watch timezone: epoch is UTC instant; local display depends on your browser.
Examples
- 1699999999 seconds → readable UTC and local
- 2025-01-01T00:00:00Z → epoch seconds
- JavaScript Date.now() 13-digit ms → seconds for a REST API
- Compare two epoch values for event ordering
- Debug “token expired” by comparing exp claim to now
- Convert nginx log epoch to human time
FAQ
- Seconds vs milliseconds?
- Values below ~1e12 are usually seconds; 13-digit values are usually milliseconds.
- Leap seconds?
- Unix time historically ignores leap seconds for simplicity; expect rare edge quirks.
- Timezone?
- Epoch is an instant; local labels depend on your environment.
- Before 1970?
- Negative epoch seconds represent times before the Unix epoch if supported.
- Why string vs number?
- JSON often carries epoch as number; some APIs use string—parse consistently.
- Privacy?
- Conversion happens locally in your browser.
Related guides
Related tools
Last updated: 2025-09-16