Data Tools
Unix Timestamp Converter
Convert between Unix timestamps and human-readable dates. Free online tool — runs in your browser, no sign-up required.
See how to use this toolUnix Timestamp Converter
Data is converted locally in your browser without server upload.
About Unix Timestamp Converter
Unix Timestamp Converter translates between epoch seconds (1700000000), epoch milliseconds (1700000000000), and human-readable ISO 8601 strings, using the browser's native Date object and Intl.DateTimeFormat — so the arithmetic is exactly what your server-side JavaScript or browser code will produce, not an approximation. It auto-detects whether the input is in seconds or milliseconds by magnitude (a 13-digit number is milliseconds, a 10-digit number is seconds), which eliminates the most common source of off-by-1000x bugs.
Beyond a single conversion, the tool renders the same instant in UTC, in your local browser timezone, and in any timezone you pick — so you can confirm a log timestamp in UTC against the local time a user reported an issue. It also shows the relative time (e.g. 'in 3 days', '2 hours ago') and breaks the instant into its components (year, month, day, hour, minute, second, day-of-week, day-of-year) for debugging calendar logic.
Everything runs locally. There is no server call, which matters because timestamps often come from logs or database rows you should not transmit to a third-party converter.
How to use it
- 1Paste an epoch number, a millisecond epoch, or an ISO 8601 string into the input.
- 2The tool auto-detects seconds vs milliseconds by digit count; override if needed.
- 3Read the converted instant in UTC, your local timezone, and a chosen target timezone.
- 4Optionally pick a target timezone from the dropdown to compare across regions.
- 5Copy any of the output formats (epoch, ISO, relative, components) with one click.
When to use it
- ✓Decoding an epoch from a log line to find out when an error actually happened locally.
- ✓Verifying a JWT exp claim (seconds) against the current time before accepting a token.
- ✓Converting a database stored_at timestamp between UTC and a user's timezone for a report.
- ✓Checking whether a 10-digit or 13-digit epoch is seconds or milliseconds before writing it to a field.
Features
- •Auto-detection of seconds vs milliseconds by magnitude — no more 1000x bugs.
- •Same-instant rendering in UTC, local, and any chosen timezone.
- •Relative time and full component breakdown (dow, doy, etc.) for debugging.
- •100% local — timestamps from logs or DB rows never leave your browser.
Related tools
JSON Formatter & Validator
Paste and check JSON syntax, then indent it, sort object keys, or minify the output for copying or download.
SQL Formatter
Format and beautify SQL queries. Free online tool — runs in your browser, no sign-up required.
Regex Tester
Test regular expressions with real-time matching. Free online tool — runs in your browser, no sign-up required.
CSV Viewer
View and preview CSV data in a table. Free online tool — runs in your browser, no sign-up required.
YAML Validator
Validate and format YAML data. Free online tool — runs in your browser, no sign-up required.
JSON Diff
Compare two JSON files and find differences. Free online tool — runs in your browser, no sign-up required.
Area Converter
Convert between area units: sqm, sqft, acres, hectares. Free online converter — no sign-up required.
CSV Merge
Combine multiple CSV files into one. Free online tool — runs in your browser, no sign-up required.
FAQ
How does the tool know if my number is seconds or milliseconds?
By magnitude. A 10-digit number is treated as seconds (valid roughly between 2001 and 2286), and a 13-digit number as milliseconds. You can override the detection if the input is unusual.
Why does my ISO string show a different time than my local clock?
ISO 8601 strings without a Z or offset are ambiguous; the tool assumes local time. Strings ending in Z are UTC and are converted to your local timezone for display. Check the offset suffix on your input.
Does it handle timestamps before 1970 (negative epochs)?
Yes. Negative epoch values are accepted and render correctly for dates within the browser's Date range (about ±100 million days from 1970). This is useful for historical data.
Is my timestamp sent anywhere?
No. Conversion runs entirely in your browser using the native Date and Intl APIs. There is no network call, so timestamps from logs or database rows stay on your machine.
What timezones are supported?
All IANA timezone identifiers (e.g. America/New_York, Asia/Tokyo) via the browser's Intl support. The dropdown lists common zones, and you can type any IANA name.
Why does the relative time say 'in 0 days' for a timestamp a few seconds away?
Relative time is rounded to the nearest whole unit, so a few seconds shows as 'in 0 days' or 'just now' depending on the threshold. Switch to the component breakdown view to see the exact second-level difference.