Toolivaro

Free Unix Timestamp Converter

Convert between Unix seconds, Unix milliseconds, ISO 8601, and human-readable local time — live, fully local.

The Unix timestamp converter translates between the formats developers actually meet: Unix seconds (10 digits), Unix milliseconds (13 digits), ISO 8601 strings, and plain calendar dates. Type or paste any one form and the tool fills in every other representation at once — Unix seconds, Unix milliseconds, the ISO 8601 UTC string, the calendar date, and the same instant rendered in your local time zone and in UTC. Pre-1970 dates (negative timestamps) are handled correctly, timezone offsets in ISO strings are honored, and ambiguous inputs get a clear explanation instead of a silent guess. All parsing and formatting use the platform’s Date and Intl machinery, so the numbers you see here are the numbers your JavaScript environment computes — the tool promises engine fidelity, not a parallel implementation. Everything runs locally in your browser; nothing you enter is uploaded, logged, or stored. Use this tool when a log line shows a 13-digit value and you need to know when that actually happened, when an API expects Unix seconds and your database stores milliseconds, or when a bug report gives you a timestamp in someone else’s time zone.

Processed locally in your browser

How to use this calculator

What a Unix timestamp is, and why there are two of them

Unix time counts the seconds since 1970-01-01T00:00:00Z — the epoch — and it is deliberately time-zone-free: the same instant has the same timestamp everywhere on the planet. The confusion starts with scale: the classic 10-digit value is Unix seconds, the number you see in command-line tools, log lines, and most APIs. The 13-digit value is Unix milliseconds, the native form of many databases and of JavaScript’s Date — which stores milliseconds since the epoch and is what the platform returns from Date.now(). The converter detects which you pasted from the digit count and renders every other form at once, so a 13-digit log value that looks like a date in the far future is read correctly instead of misparsed as seconds.

Both forms describe the same instant, which is why the tool always shows seconds and milliseconds side by side: mixing them up is one of the most common timestamp bugs in real systems, and the two-column output makes the mismatch visible immediately. If the seconds column and the milliseconds column disagree about what the time is, the input was the wrong one of the two — read the pair, don’t trust one number alone.

Reading log lines and API values

A log line such as 1761330600000 arrives from a service you do not control. Paste it as-is: the converter detects the 13 digits, reads the value as Unix milliseconds, and reports Unix seconds 1761330600, the ISO 8601 string 2025-10-24T19:50:00.000Z, and the same instant in your local time zone. That last rendering is the one that matters when the log came from a server in another region: the instant is the same everywhere, but 19:50 UTC is a different clock time in Tokyo than it is in Paris, and the tool shows both so the value is never misread as local time.

The converter is also the fastest way to sanity-check an API contract. When an endpoint documentation says the field is Unix seconds but the payload shows a 13-digit value, the discrepancy is visible in one paste — the conversion back to seconds shows whether the number plausibly matches the documented era. The tool accepts negative timestamps for pre-1970 dates (the epoch is a reference point, not a lower bound), and it honors the time-zone offset inside an ISO 8601 string, so 2025-10-24T21:50:00+02:00 and 2025-10-24T19:50:00Z convert to the same timestamp.

Going from a date to a timestamp

In the other direction, type or paste a calendar date and the converter returns the Unix seconds and milliseconds for that instant, using your local time zone unless the input itself carries an offset. This is the direction to check before you write code that needs a hard-coded deadline, a scheduled job, or an expiry: the value you compute here is exactly what new Date(...).getTime() ÷ 1000 will produce in the browser, because the tool uses the platform’s own Date and Intl machinery rather than a parallel implementation. That engine-fidelity promise cuts both ways: what you see here is what your runtime computes, including any quirks in how lenient date strings are parsed, so ISO 8601 and numeric inputs are the reliable forms and the tool says so in its limitations.

The limits of the format

A Unix timestamp describes an instant — it says nothing about calendar arithmetic, time-zone abbreviations, or rules like daylight saving. Converting between instants is what the epoch is for; figuring out "9am in the meeting organizer’s time zone" is a different problem, and the converter does not pretend to solve it. Values far outside the platform’s safe range are rejected with a clear error rather than wrapped, and the tool is deliberately local: timestamps from logs and bug reports often sit inside sensitive data, and nothing you paste here is uploaded, logged, or stored.

How is the result calculated?

A 13-digit value from a log line

A log line contains 1761330600000. The converter detects 13 digits, reads it as Unix milliseconds, and reports: Unix seconds 1761330600, ISO 2025-10-24T19:50:00.000Z, and the same instant rendered in your local time zone.

Example input and output
Input Value
value 1761330600000
Result 2025-10-24T19:50:00.000Z · Unix seconds 1761330600 · local time shown

What is the formula and its assumptions?

Unix time

unixSeconds = milliseconds ÷ 1000 (from 1970-01-01T00:00:00Z)

Formula terms
Symbol Meaning
unixSeconds whole seconds since the Unix epoch, UTC
milliseconds the platform Date value in milliseconds

10-digit inputs are seconds; 13-digit inputs are milliseconds — the tool detects both.

ISO 8601 / RFC 3339

iso = date.toISOString()

Formula terms
Symbol Meaning
toISOString UTC rendering as YYYY-MM-DDTHH:mm:ss.sssZ

Local-time renderings use the visitor’s system time zone via Intl.

What are the most common mistakes?

  • Confusing 10-digit seconds with 13-digit milliseconds — the single most common timestamp bug.
  • Reading a UTC timestamp as local time (or the reverse) when the value came from another time zone.
  • Assuming the epoch starts at the local midnight — the epoch is 1970-01-01T00:00:00Z, not local midnight.
  • Pasting timestamps into a web converter that uploads them — this tool is fully local.

What are the assumptions and limitations?

  • Parsing uses the platform Date machinery: dates beyond the safe integer range or far outside the platform’s supported range are rejected with a clear error.
  • Very lenient date strings may parse differently across environments; ISO 8601 and numeric inputs are the reliable forms.
  • The tool converts instants — it does not interpret time-zone abbreviations or calendar arithmetic.

Where do the numbers come from?

Last reviewed August 5, 2026 · Version 1.0.0 · Toolivaro does not guarantee external content.

Frequently asked questions

10 digits or 13 digits — what is the difference?

Unix seconds are the classic 10-digit epoch value; many modern systems and databases store 13-digit Unix milliseconds. The tool detects the length and converts accordingly — mixing the two up is one of the most common timestamp bugs, and the output shows both forms so you can spot it.

Why does the local time differ from the UTC time?

A Unix timestamp is the same instant everywhere; the local rendering applies your system’s time zone. The tool shows both the UTC and local forms so a timestamp from another time zone is never misread.

Does the converter handle dates before 1970?

Yes. Negative Unix seconds (for example -86400, which is 1969-12-31) are parsed and rendered correctly — the tool does not assume the epoch is a lower bound.

Why does the ISO output end in Z, and what does it mean?

The Z marks UTC — the instant expressed in the universal time zone, with no offset applied. The local rendering next to it shows the same instant in your system’s zone; the two describe one moment, which is exactly the point of the side-by-side view.

What is the largest date the converter accepts?

The platform’s Date machinery covers roughly ±100 million days from the epoch — effectively any real-world timestamp. Values beyond that range are rejected with a clear error instead of being wrapped around or silently misread.

Part of Time, date, and scheduling tools

Found a mistake or have a correction? Report it — we review every correction.

Was this helpful?

Reviewed by the Toolivaro editorial team per our methodology Methodology · Editorial policy