What is a Unix timestamp?
A Unix timestamp (epoch) counts the number of seconds — or milliseconds — since January 1, 1970 00:00:00 UTC. Databases, logs, APIs and file systems store times this way because a single number is compact and timezone-free. But 1700000000 means nothing to a human, which is where this converter comes in.
Seconds or milliseconds?
Classic Unix time uses seconds (10 digits). Modern JavaScript Date.now(), most Node.js and Java timestamps use milliseconds (13 digits). This tool auto-detects the format from the length of the number, so you can paste a mixed list and it still works.
How to use it
- Epoch → Date: paste any number of timestamps, one per line. The table shows every converted date plus both epoch forms for re-use.
- Date → Epoch: switch the mode and paste dates like
2023-11-14 22:13:20orNov 14 2023— you get epoch values back, in seconds and milliseconds. - Use the timezone selector to view results in UTC when comparing logs from servers around the world.
This batch mode saves you from opening a single-value converter 50 times when debugging log files, database dumps or API responses.
Edge cases and hard limits
Each line is inspected for length and digits: ten digits are read as seconds, thirteen as milliseconds and sixteen as microseconds, then formatDate() renders the value as both ISO 8601 and local time. In the other direction, a date you paste produces a timestamp in the precision you choose, so log lines and database columns can be aligned without manual arithmetic.
Formats, sizes and other limits
Unit detection is by digit count, which is a heuristic: a ten-digit millisecond value from 1970 or a non-standard length will be misread, and there is no way to override it per line. Timezones follow the browser, so comparing against a UTC server log needs care. Microseconds are truncated to milliseconds because JavaScript's precision stops there.
Privacy: processed in your browser
Timestamps are converted locally. Nothing is sent, so log excerpts you paste — which often contain internal identifiers — stay in the tab.
Frequently asked questions
Why is my date off by decades?
The unit was misread. Ten digits are seconds and thirteen are milliseconds; mixing them changes the result by a factor of a thousand.
Local time or UTC?
Both are shown. Compare server logs in UTC to avoid a timezone error.
Are microseconds supported?
Sixteen digits are treated as microseconds, but the value is truncated to millisecond precision.