JSON Formatter
JSON Formatter for developers — instant, offline-style and privacy-safe.
Convert a Unix timestamp to a readable date — in UTC, your local time and ISO 8601 — and turn a date back into Unix seconds and milliseconds. Runs in your browser.
Your browser is preparing the tool. It runs 100% locally.
Paste a Unix timestamp and the tool shows the date in UTC, your local time and ISO 8601 format; pick a date and it gives you back the Unix time in seconds and milliseconds. Unix time counts the seconds since 1 January 1970 UTC. The tool reads a ten-digit value as seconds and a longer one as milliseconds. It runs entirely in your browser.
It works both directions. Type a Unix timestamp and you immediately see three readings — the UTC date and time, the same moment in your device's local timezone, and the ISO 8601 string — so you can read an epoch value from a log or an API. Pick a date and time and it returns the matching Unix value in both seconds and milliseconds.
A current-time button fills in the present moment, which is handy for grabbing a timestamp to drop into code or a test. Everything updates as you type.
Unix time is the number of seconds since the epoch — midnight UTC on 1 January 1970 — so the tool turns a timestamp into a date by counting that many seconds forward. It detects the unit by length: a value of ten digits or fewer is read as seconds, and a longer one as milliseconds, since a seconds value passed the ten-digit mark only recently and milliseconds values are three digits longer.
The UTC reading is the unambiguous one; the local reading applies your device's timezone offset to the same instant; and the ISO 8601 string is the standard machine-readable format. Converting the other way, a chosen date is expressed as whole seconds (rounded down) and as milliseconds.
Unix time = seconds since 1970-01-01 00:00:00 UTC (leap seconds ignored)
ten digits → seconds · thirteen digits → milliseconds1700000000 → Tue, 14 Nov 2023 22:13:20 UTCThe tool reads ten digits or fewer as seconds and longer values as milliseconds.
| Epoch | 1 January 1970, 00:00:00 UTC |
|---|---|
| Timestamp to date | UTC, local, ISO 8601 |
| Date to timestamp | seconds and milliseconds |
| Unit detection | ten digits or fewer is seconds, longer is milliseconds |
| Local time | uses your device timezone |
| Leap seconds | ignored (as in Unix time) |
| Where it runs | In your browser — nothing uploaded |
It detects seconds versus milliseconds by the number of digits — ten or fewer means seconds. That is right for almost all timestamps today, but an unusual value can fool it: a milliseconds value from the early 1970s has few digits and would be misread as seconds, and a seconds value beyond the year 2286 has eleven digits and would be misread as milliseconds.
The local reading depends on your device's timezone and clock. The same instant shows a different wall-clock time on a machine set to another zone; the UTC and ISO readings are the ones that are the same everywhere.
Unix time ignores leap seconds, by definition. It is a count of seconds since 1970 as if every day were exactly 86,400 seconds, so it can differ by a handful of seconds from strict astronomical time — which is intentional and standard.
This is a browser tool using 64-bit dates, so the famous Year 2038 problem does not affect it. That bug hits systems that store Unix time in a signed 32-bit integer, which overflows in January 2038; browsers handle dates far beyond that.
Whole seconds are rounded down. Converting a date that includes a fractional part to seconds truncates rather than rounds, so the seconds value is the floor of the exact time.
Turn an epoch value in a log line into a readable date.
Decode timestamps returned by an API into UTC and local time.
Grab the current Unix time in seconds or milliseconds for a test or config.
See the same instant in UTC and your local time at once.
Need the gap between two dates? Use a date-difference calculator. Converting between named time zones (not just UTC and local)? A world-clock or timezone tool handles that. Working with durations? A time-duration calculator fits better.
Counts seconds from the 1 January 1970 UTC epoch and detects seconds versus milliseconds by digit length (ten or fewer is seconds); it is explicit that leap seconds are ignored, that the local reading depends on the device timezone, and that the browser's 64-bit dates avoid the 32-bit Year 2038 problem.
JSON Formatter for developers — instant, offline-style and privacy-safe.
JSON Validator for developers — instant, offline-style and privacy-safe.
Base64 Encoder for developers — instant, offline-style and privacy-safe.
Fast, free Hash Generator that runs entirely client-side in your browser.
Fast, free UUID Generator that runs entirely client-side in your browser.
Fast, free CSS Minifier that runs entirely client-side in your browser.
It is free, private and runs entirely in your browser — no sign-up, no uploads, no limits.