ToolsArena24

Unix Timestamp to Date

Maintained by the ToolsArena24 team. Methodology and test scope

Quick answer: Convert Unix seconds to a UTC ISO date with explicit validation of the supported input format.

About this unix timestamp to date

Convert a Unix timestamp into an ISO date and time in UTC. Unix seconds count elapsed time from 1970-01-01 at midnight UTC. Select milliseconds if your source is a JavaScript timestamp or a thirteen-digit value, rather than relying on an ambiguous automatic guess. For example, 1704067200 seconds corresponds to 2024-01-01T00:00:00.000Z, while zero corresponds to the epoch itself.

Negative timestamps represent dates before the epoch. Fractional seconds are accepted and represented with the millisecond precision supported by JavaScript Date. The final Z explicitly identifies UTC, so the answer does not vary with your computer's local timezone or daylight-saving setting. Numeric input is validated before conversion, and dates outside JavaScript's supported range produce an error.

Confirm the unit used by the original API, database or log. Treating milliseconds as seconds can move a date thousands of years into the future. Unix time ignores leap seconds in its usual representation; this page does not provide a specialized astronomical timescale or infer local civil time from a timestamp.

Which controls should I check first?

The Unix Timestamp to Date form labels its controls as Input; Timestamp unit; Result. Its selectable values include Seconds; Milliseconds. Use those labels to keep the source and settings separate. A sample argument that selects a mode is not additional source text. Choose the setting matching your intended operation before copying a result, and change it explicitly when comparing another mode. The labels describe what this form accepts; the worked examples below demonstrate only the stated supplied values.

Worked helper values

These values come from the reproducible calculation examples supplied with this tool. Each row identifies the complete supplied arguments and the returned value. A visible ↵ denotes a line break and ⇥ denotes a tab in text examples. Settings appear alongside source data so that a different mode is not mistaken for an identical input. These are helper calculations, not observations of a live device, fetched target, image decoder, browser preview or downloaded file. Use the stated method above to relate the returned fields to the actual operation.

Supplied valuesCalculated return value
1704067200; seconds2024-01-01T00:00:00.000Z

Am I converting an instant, a date or a duration?

A calendar date names a day, a timestamp identifies an instant, and a duration measures elapsed time. Choose the tool that matches your source rather than exchanging those quantities by assumption. A date-only input does not include a local clock time. An ISO timestamp with Z explicitly uses UTC, while a numeric Unix value also needs its seconds or milliseconds convention. Write down that convention beside a copied result. A one-hour daylight-saving change can affect elapsed clock time without changing the number of calendar dates crossed, so comparisons should use the same basis.

Why do timezone and unit conventions matter?

Two clock readings can describe the same instant when they use different offsets. Conversely, the same clock reading in two zones can describe different instants. UTC output provides a common comparison point. For Unix data, milliseconds contain a thousand times as many units as seconds, and interpreting one as the other creates a dramatically wrong date. For a date-only span, compare calendar days rather than assuming every local day is exactly twenty-four elapsed hours. Inspect the input's explicit format before converting. A plausible-looking year is not enough to establish that the unit and timezone were correct.

How do I check a boundary case?

Use an example near a month end, a leap day or the epoch so that the important rule is visible. Compare a forward operation with its reverse where the tool supports both. A negative elapsed span can mean that the end precedes the start; it is different from an invalid date. Calendar anniversaries and total elapsed days also answer different questions. For an age, a year count should change at the relevant anniversary rather than after a fixed number of seconds. Keep the reference date visible when sharing an answer so that someone can reproduce the same calculation later.

What should I do with an ambiguous civil time?

A named timezone applies a calendar of offset rules, including daylight-saving transitions when present. Some local wall-clock readings do not occur during a spring change, and some occur twice during a fall change. A conversion should resolve a unique instant instead of guessing which occurrence you intended. If your source records an offset, retain it. If it records only a local time, obtain the actual source zone and occurrence before comparing logs. A computer's current timezone cannot reliably fill in that missing historical context for a timestamp created elsewhere.

Why should I preserve the original input?

Date formatting can conceal the source convention. An ISO string may show a different calendar date after expressing the same instant in another zone, and a rounded numeric timestamp can drop subsecond precision. Preserve the original value, its timezone or offset, and its unit alongside the converted form when investigating a log or import. That makes a mismatch traceable. The calculation follows the supplied dates and conventions; it cannot infer a missing zone from a person's location or prove that a device clock was correct when the record was created.

Is the result local time?

No. The ISO result is always UTC and ends in Z.

Should I choose seconds or milliseconds?

Use the unit specified by the source system.

Are negative timestamps allowed?

Yes. They represent dates before 1970-01-01 UTC.