Unix Timestamp Converter
Convert between epoch time and readable dates, a line at a time, in UTC and your own zone.
What this tool does
A Unix timestamp counts seconds since midnight UTC on 1 January 1970. It has no time zone and no ambiguity, which is why nearly every database, log file and API stores time this way. It is also completely unreadable, which is why this tool exists.
The most common bug in this area is a factor of a thousand. JavaScript's Date.now() returns milliseconds; most other languages and APIs return seconds. Feed one to something expecting the other and you get 1970 or the year 54,000. Here a bare number is read by how many digits it has: up to 10 is seconds, up to 13 milliseconds, up to 16 microseconds, longer than that nanoseconds. A "Numbers are" menu overrides that guess when it is wrong.
Each line comes back as a table row with the epoch value in both seconds and milliseconds, the calendar time, and how long ago or ahead it is. The zone columns are there because the second class of bug lives in them: a timestamp is an absolute instant, but the calendar date it lands on depends on where you are standing.
How to use it
- Paste your values, one per line. Bare numbers, ISO strings, a plain 2024-03-01 09:30, or the word now — mixed together is fine.
- Pick what to show. UTC and local side by side, or narrow the table to just one of them.
- Copy the table. The copy button takes the whole result as tab-separated rows, ready to paste into a sheet.
Processing & privacy
Runs on your device. Your file is processed directly in this browser.
Common use cases
Reading a log file
Turn an epoch column into a time you can line up against an incident.
Debugging an API
Check whether a token's exp claim or a created_at field is what you expected.
Writing a test fixture
Produce a fixed timestamp for a specific date so tests do not drift.
Checking an expiry
The relative column says at a glance whether a stored deadline has already passed.
Questions
Seconds or milliseconds — how does it know?
Why does the date differ from what I expected?
Which zones can I see?
What is the year 2038 problem?
Can I convert a date before 1970?
Is my input sent anywhere?
Related tools
- JSON Formatter — Pretty-print, collapse and inspect JSON instantly.
- Base64 Encoder Decoder — Encode and decode Base64 text and files.
- JWT Decoder — Inspect the header, payload and claims of a JWT.
- Hash Generator — Compute MD5, SHA-1, SHA-256 and SHA-512 digests.
- Regex Tester — Test patterns against sample text with live matches.
- QR Code Generator — Create a QR code for a link, text, Wi-Fi or vCard.