LocalExcelTool
Get started

Timestamp Converter

Convert between Unix timestamps and human-readable dates.

Runs in your browserNo account neededFree

What is Timestamp Converter

A timestamp converter translates a Unix timestamp (seconds or milliseconds since 1 Jan 1970) into a readable date, or a date back into a timestamp. Useful for inspecting logs and API times.

🔒 Everything runs in your browser. Nothing is uploaded.

What this tool actually does with your file

Where it runs
In your browser, on this page
Upload
None — the file never leaves your device
Offline
Works with the network disconnected

Seconds or milliseconds, and the factor is 1000

Unix time counts seconds since 1970-01-01T00:00:00Z. JavaScript's Date.now() counts milliseconds. A value of 1,700,000,000 is a 2023 date in seconds and 1970-01-20 in milliseconds — the two are both plausible-looking numbers, which is why the error survives review.

The reliable check is magnitude: current second-based values are 10 digits, millisecond-based ones are 13. Beyond about 2286 the second-based value reaches 11 digits, and the heuristic needs adjusting — but for anything written today, digit count identifies the unit correctly.

The 2038 problem is still ahead

A signed 32-bit integer of seconds overflows on 2038-01-19T03:14:08Z. Systems storing timestamps that way will wrap to 1901. Most modern stacks use 64-bit, but embedded devices, older databases and some file formats do not, and the failure is a date rather than a crash — so it tends to be noticed late.

Milliseconds overflow a signed 32-bit value back in 1970, which is why millisecond timestamps were always stored wider. If a system's timestamps are 32-bit, assume seconds.

Displaying it correctly

The underlying value has no time zone — it is an instant. Any zone appears only when formatting, and the same instant renders as different dates and times depending on where the reader is. Storing a formatted local time instead of an instant is how a scheduled event drifts by an hour twice a year.

For anything user-facing, store UTC and render in the user's own zone, preferring an explicit zone name over an offset. An offset tells you where the clock was, not which rules applied, so a historical date rendered from a stored offset can be wrong across a DST boundary.

How to use it

  1. 1.Enter a timestamp or date
  2. 2.Pick a direction if needed
  3. 3.Copy the result

How Timestamp Converter works under the hood

Calculators here run the arithmetic in the tab and show the formula next to the result, so the number can be re-checked instead of trusted.

  1. 1

    Read the inputs

    Values are parsed as numbers with explicit unit handling; invalid input is rejected rather than coerced to zero.

  2. 2

    Apply the formula

    The calculation is a pure function, which is why the same inputs always give the same result.

  3. 3

    Show the working

    The formula and intermediate values are printed with the result so you can verify each step.

  4. Processing pipeline

Rounding is shown, not hidden

Results are rounded for display, and the unrounded value is used for any later step. If a figure matters to the cent, check which rounding the page applied — it is stated next to the result.

What it cannot know

A calculator cannot know your contract terms, local tax rules or negotiated rates. It computes what you type; the assumptions are yours to check.

Verify it yourself

Every number can be reproduced by hand from the formula shown.

  1. 1.Open DevTools on this page and switch to the Network tab
  2. 2.Keep the filter on Fetch/XHR and run the tool
  3. 3.Confirm no request carries your file — you should see only page assets and fonts

Frequently asked questions

Seconds or milliseconds?

10 digits means seconds, 13 digits means milliseconds. It is detected automatically.

Which timezone?

Both UTC and your browser's local time are shown.

Can I convert a date?

Yes. Enter a date like 2026-01-01 to get its timestamp.

What this kind of conversion cannot keep

Calculators show the formula they used, not just the number. That way a result you disagree with can be checked line by line instead of being trusted or discarded as a black box.

More in Calculators