Skip to content
Betterbit Tools

Unix Timestamp Converter

Paste a Unix timestamp or choose a date; convert both ways with automatic seconds/milliseconds checks and explicit UTC or device time.

  • Fewer clicks, keyboard friendly

Focus the timestamp field with / when you are not typing in a field.

Converted values

Read as
Seconds
Unix seconds
1793252254
Unix milliseconds
1793252254000
ISO 8601 (UTC)
2026-10-29T05:37:34.000Z
UTC time
Thursday, October 29, 2026 at 05:37:34

Saved only in this browser. Conversion runs locally; nothing is sent to a server.

How to use

  1. Paste an integer into “Unix timestamp”; the converted seconds, milliseconds, ISO 8601, and readable time appear immediately.
  2. Leave Input unit on “Auto” for ordinary 10-digit seconds and 13-digit milliseconds, or select the known unit to override that convention.
  3. To convert in the other direction, edit “Date and time” and choose whether that clock time means UTC or your device’s local time.
  4. Use “Use current time” to start from the current instant, then copy an individual value or all values together.
  5. Your last inputs stay only in this browser; press / outside a field to focus the timestamp input again.

Unix time is an instant, not a time zone

A Unix timestamp is a count from 1970-01-01 00:00:00 UTC, commonly called the Unix epoch. The same integer names the same instant everywhere; a time zone only changes the human-readable clock used to display it. This tool therefore keeps ISO 8601 in UTC and lets you explicitly read a date/time entry as either UTC or this device’s local zone. That distinction matters for strings without an offset: “2024-01-01 09:00” means a different instant in Seoul and New York, while “2024-01-01T00:00:00Z” always means UTC.

Seconds, milliseconds, and the safe way to detect them

Unix and POSIX tools usually use whole seconds, so current values are 10 digits; JavaScript Date.now() returns milliseconds, which are currently 13 digits. Auto mode follows that common convention: up to 10 significant digits are read as seconds and longer integers as milliseconds. Digit count is a useful hint rather than a permanent specification—Unix seconds become 11 digits in 2286—so this converter always shows the detected unit and provides a manual override. It also preserves the millisecond remainder exactly: 1704067200123 milliseconds is shown as 1704067200.123 seconds, not a rounded floating-point value.

Range and leap-second limits

The browser Date object used here can represent instants from roughly 275,760 years before to 275,760 years after 1970, and the converter rejects values outside that range instead of silently rounding them. Unix time does not count leap seconds: its scale proceeds as though each UTC day has 86,400 seconds. That is why it is excellent for ordering logs, API events, expiry times, and database values, but it is not a record of every atomic-clock second. For timestamps with microseconds or nanoseconds, retain the original value in the source system because JavaScript Date displays millisecond precision.

Frequently asked questions

What is a Unix timestamp?

A Unix timestamp is the elapsed count from 1970-01-01 00:00:00 UTC. The common Unix/POSIX form is whole seconds, while JavaScript commonly uses milliseconds; neither form contains a time-zone label.

How can I tell seconds from milliseconds?

Around the present day, a 10-digit integer is usually Unix seconds and a 13-digit integer is usually Unix milliseconds. This converter detects that convention automatically, shows its choice, and lets you force either unit when you know the source format.

Why does the same timestamp show different local and UTC times?

A timestamp identifies one instant, but local time renders that instant with the device’s time-zone offset and daylight-saving rules. UTC is the same worldwide, while the device-time display changes with the browser or operating-system time zone.

Can this converter handle dates before 1970?

Yes. Negative Unix timestamps represent instants before the 1970 epoch; for example, -86400 seconds is 1969-12-31T00:00:00.000Z. Values must still fit the JavaScript Date range of approximately ±275,760 years.

Are my timestamps uploaded or stored on a server?

No. Parsing and conversion run in the browser. The most recent inputs are saved only in this browser’s local storage so they can be restored after a refresh; no account or server request is used.

Related tools

Updated 2026-10-12