ToolSprinkle.

Unix timestamp converter

Convert Unix seconds, milliseconds and ISO dates with explicit timezones. See UTC, local time and negative timestamps with reproducible examples.

From input to insight.
PROCESSED ON YOUR DEVICE

Ready when you are.

◎ No uploads. Your input stays here.↗ Free to use. No account needed.⌘ / Ctrl + Enter to run

A worked example

Unix seconds converted to UTC. The additional local-time line depends on your browser timezone.

Input / settings

1704067200

Expected result

UTC: 2024-01-01T00:00:00.000Z
Unix seconds: 1704067200
Unix milliseconds: 1704067200000
A LITTLE GUIDANCE

How to use Unix timestamp converter

Select seconds, milliseconds or ISO date with timezone, enter a value and select Run tool. ISO input requires a full time including seconds and Z or a numeric offset. The result includes UTC, both Unix units and your browser’s local time.

Good to know

Uses JavaScript Date with millisecond precision. Leap seconds, named timezone lookup and timezone-free ISO dates are not supported. The local-time line depends on your browser settings.

A few quick answers.

Why does my date look like 1970?

You may have selected milliseconds for a seconds value. Choose the matching unit. ISO input must include Z or an explicit timezone offset.

Is my input sent to a server?

No. This tool processes your input in your browser. We don't store your text, files or results. Standard website access logs are separate; read our privacy notes.

Can I use it for free?

Yes. No account, subscription or usage credits are required.

How do I keep my result?

Use Copy or Download after running the tool. Inputs are not saved automatically and disappear when you leave or refresh the page.

Seconds, milliseconds and timezone boundaries

Choose the unit, not the number of digits

1704067200 in Unix seconds and 1704067200000 in Unix milliseconds both give 2024-01-01T00:00:00.000Z. Selecting milliseconds for 1704067200 instead gives 1970-01-20T17:21:07.200Z. Check the source system’s unit; digit count alone is not a safe rule for older or negative dates.

An offset identifies the instant

In ISO mode, 2024-01-01T01:00:00+01:00 is the same instant as 2024-01-01T00:00:00Z: Unix seconds 1704067200. Use YYYY-MM-DDTHH:mm:ss followed by Z or ±HH:mm, optionally with one to three fractional-second digits. An offset is not a named zone such as Europe/Stockholm; the converter does not infer daylight-saving rules for a place.

Before the epoch and fractional seconds

In seconds mode, -1 gives 1969-12-31T23:59:59.000Z. In milliseconds mode, -1 gives 1969-12-31T23:59:59.999Z and Unix seconds -1, because the seconds result rounds down, not toward zero. Numeric timestamp inputs must be whole numbers; enter fractional seconds as milliseconds or an ISO fraction such as 1970-01-01T00:00:00.123Z.

Validate the date and distinguish calendar days

Impossible calendar dates, times such as 24:00:00, leap-second values such as 23:59:60 and ISO dates without an offset are rejected. JavaScript Date supports milliseconds within ±8,640,000,000,000,000 of the epoch. For days between calendar dates, use the date difference tool instead: a local day can span 23 or 25 hours around a daylight-saving change.

Choose the representation you need: inspect a timestamp and its UTC instant, count calendar days or convert an integer’s base. Copy a value before switching tools; no input is transferred automatically. Base conversion changes notation, not timestamp units.

Method references: JavaScript Date, timestamps and UTC and BigInt exact integer arithmetic.

Keep your flow going.

More developer tools ↗

What would you like to do?

↑ ↓ Navigate · Enter Open · Esc Close. Switching tools clears unsaved input.