Developer / Free browser tool

Unix Timestamp Converter

Paste an epoch value and read it six ways, or turn a date into seconds and milliseconds. The unit is detected, but never guessed silently.

Developer Runs locally Free

No account or install. Tool input is processed on your device.

Timestamp converter
Tool input stays local

Whole number. Seconds or milliseconds, depending on the unit.

Unit

Auto treats values of 100,000,000,000 or more as milliseconds.

Local time — —
UTC —
Selected zone —
ISO 8601 —
RFC 2822 —
Unix seconds —
Unix millis —

Interpreted as seconds.

Input is processed in your browser. Reloading the page clears it unless the tool saves a draft. 4 November 2026

About this tool

A Unix timestamp is a count of seconds from 00:00:00 UTC on 1 January 1970. APIs, logs and databases may store that count in seconds or milliseconds, and the unit is not always included with the value.

Paste a number to see the corresponding instant in UTC, your device zone, a selected IANA zone, ISO 8601, RFC 2822 and relative time. You can also enter a wall-clock date and time to produce Unix seconds and milliseconds. The unit selector lets you override automatic detection.

Conversion and formatting run locally in your browser. The timestamp is not sent to a server.

Seconds, milliseconds and automatic detection

Unix systems commonly use seconds, while JavaScript and many application APIs use milliseconds. In Auto mode, this converter treats absolute values of 100,000,000,000 or more as milliseconds and smaller values as seconds. This is a practical heuristic, not proof of the unit; historical dates and far-future values can require a manual selection.

Dates before 1970 use negative values. JavaScript supports dates approximately ±271,821 years around the epoch. Values outside that range are rejected instead of producing an invalid date.

Time zones and daylight-saving transitions

A timestamp identifies one instant. Its calendar date and clock time depend on the display zone. Named zones use the browser's IANA time-zone data, including historical offsets and daylight-saving rules available in that browser version.

Converting a wall-clock time can be ambiguous. A time inside a spring-forward gap does not exist, and a time inside an autumn overlap occurs twice. The converter applies its offset calculation and shows a notice when the requested local time was adjusted.

Unix time counts from 00:00:00 UTC on 1 January 1970 and ignores time zones entirely. Only its human-readable rendering changes when the zone changes.

How it works

Resolve the unit

The value is trimmed, checked as a whole number, and compared with the 100-billion threshold. A decimal point or a comma is rejected instead of being quietly rounded.

Validate the range

The integer is parsed as a BigInt first, so a 19-digit millisecond value cannot lose precision before it reaches a Date object.

Render every format

Intl.DateTimeFormat handles the named zones. ISO 8601, RFC 2822, UTC and a relative phrase are derived from the same instant, so no two rows can disagree.

Common questions

Should I use seconds or milliseconds?

Follow the system you are talking to. Classic Unix tools and most REST APIs use seconds; JavaScript and JVM timestamps usually use milliseconds. If a value renders a date in 1973 when you expected this year, you are almost certainly reading seconds as milliseconds.

Why does the zone selector change the date but not the number?

Because a timestamp is an instant, not a calendar date. The zone only affects how that instant is written out. Copying the seconds value between zones always yields the same number.

What is the largest timestamp supported?

JavaScript dates stop at ±8,640,000,000,000,000 milliseconds, about ±271,821 years from 1970. Values beyond that are rejected, because the alternative is a wrapped or invalid date that looks plausible.

Are fractional timestamps accepted?

No. The parser takes whole seconds or whole milliseconds only. Fractional input is usually a sign that the value is a duration rather than an instant, and rounding it silently would hide the mistake.

Does this handle daylight saving correctly?

It uses the browser's IANA time-zone data, which includes DST rules and historical changes. That data comes with the browser; a very old browser may have outdated rules for recent political changes.