GGfor Tools

Timestamp Converter

Convert Unix timestamps (seconds or milliseconds) to UTC/local times and back.

Local offset for selected instant: —
Browser timezone: —

Seconds accept up to three decimal places; milliseconds are integers. ISO input requires Z or an explicit ±HH:MM offset. Local time uses your browser timezone. Both UTC and local years must be 0001–9999.

—

Preview
Local time
—
UTC time
—

Enter a timestamp or date, or use Now.

Unix timestamp guide: seconds, milliseconds, UTC and local time

Convert one instant between numeric timestamps, explicit-offset ISO dates and browser-local dates. Keep millisecond precision and verify timezone assumptions before comparing logs, API values or database records.

1700000000.123 s = 1700000000123 ms
2023-11-14T22:13:20.123Z
0 s = 0 ms
1970-01-01T00:00:00.000Z

How to convert a Unix timestamp

Enter seconds, integer milliseconds, an explicit-offset ISO date or a local date in its labeled field. The highlighted source stays unchanged while other fields update. Now reads your device clock once; Clear removes all values. Copy all results to retain units, UTC output and local timezone context.

Unix epoch, seconds and milliseconds

Unix time counts from 1970-01-01T00:00:00Z. One second is 1000 milliseconds. The two input fields choose the unit explicitly; the tool never guesses from digit count. Ten-digit seconds and thirteen-digit milliseconds are common today, not universal rules.

Fractional seconds and dates before 1970

Seconds may contain up to three fractional digits, preserving millisecond precision. For example, -0.001 seconds is -1 millisecond, or 1969-12-31T23:59:59.999Z. This tool does not floor negative values to a previous whole second and does not accept microsecond or nanosecond timestamp precision.

UTC, offsets and ISO input

Use YYYY-MM-DDTHH:mm:ss with optional .SSS and an explicit Z or ±HH:MM offset. Z means UTC; an offset identifies an instant relative to UTC. The UTC preview is normalized to a Z timestamp even when the source contains an offset. Missing offsets, date-only strings, 24:00 and leap-second notation are rejected rather than guessed.

Browser local time and the selected date

The local field uses the browser timezone, not a manually selected city. Its offset is calculated for the converted instant, so winter, summer and historical offsets may differ. Historical offsets containing seconds are displayed when supplied by the browser. Results depend on the timezone data installed on the device.

Daylight-saving gaps and repeated clock times

Some local times do not exist when clocks move forward, and some occur twice when clocks move back. Ambiguous or nonexistent local input is rejected instead of silently selecting or shifting an instant. Use an ISO timestamp with an explicit offset, or a numeric timestamp, to identify the intended instant.

What is copied from the local field?

Local copy includes the date, milliseconds, selected UTC offset and browser timezone name. This preserves context that a bare local clock value would lose. Copy all uses a normalized UTC ISO value. Copy buttons are disabled whenever the source is empty or invalid, so stale results cannot be copied.

Calendar validation, precision and range

Dates are checked against Gregorian calendar rules, including leap years and the actual number of days in each month. Both UTC and local calendar years must be between 0001 and 9999; values that cross that range after an offset are rejected. Years 0001–0099 are interpreted literally. Inputs are limited to 64 characters, with no grouping separators or scientific notation.

Does a timestamp contain a timezone?

A numeric Unix timestamp identifies an instant relative to the UTC epoch; it does not store the originating timezone. The same instant can have different local date and clock displays. Formatting it for another timezone changes the representation, not the timestamp.

Does Now provide an authoritative live clock?

No. Now uses the device system clock when the button is pressed, and the initial display is also a single reading. It is not a continuously synchronized server clock. Incorrect device time or outdated timezone data can affect results.

Timestamps are not fixed-duration or leap-second calculators

This page converts instants between supported representations. It does not calculate age, date differences or local calendar schedules. Unix/ECMAScript time does not count leap seconds as separate timestamp seconds, and this tool does not apply a leap-second table.

Related tools