Online Timestamp Converter

Quickly convert between Unix timestamps and dates. Seconds or milliseconds are detected automatically, the current timestamp updates live, and every result is shown as local time, UTC and ISO 8601 with one-click copy. All calculations run locally in your browser.

Current timestamp
Seconds -
Milliseconds -
Local time -
Timestamp → Date
Unit
Local time -
UTC time -
ISO 8601 -
Date → Timestamp
Seconds -
Milliseconds -
UTC time -

About this tool

A Unix timestamp is the number of seconds (or milliseconds) since 1 January 1970 00:00:00 UTC, widely used to pass time between programs and APIs. This tool converts in both directions and automatically detects whether your input is in seconds or milliseconds.

Each conversion shows local time, UTC and ISO 8601 side by side so you can compare and copy. Everything is computed in your browser and no data is uploaded.

Unix time is a single counter: the number of seconds elapsed since 1970-01-01T00:00:00 UTC, a starting point that was simply convenient when the format was standardised in the early 1970s. It is a count and not a calendar, which has two consequences. Leap seconds are ignored, so Unix time drifts a second or so away from astronomical time and is then stepped back; systems that must measure physical elapsed time use a monotonic clock instead. And because the value is anchored to UTC with no timezone attached, it is unambiguous everywhere: the same number shown in Tokyo, Berlin and New York is one instant displayed as three different wall-clock readings.

The most common production bug is a unit mismatch. Unix APIs and most databases — PostgreSQL, MySQL, Redis — use seconds, while JavaScript’s Date object and any JSON payload built from it use milliseconds. Send seconds to a millisecond field and the date lands in January 1970; multiply a value that was already milliseconds and it jumps to the year 52000. A ten-digit number is almost always seconds and a thirteen-digit number almost always milliseconds, but that rule fails for dates before 1973, where small millisecond values resemble seconds, and stops working entirely after 2286, when ten-digit seconds run out. When a value crosses a system boundary, put the unit in the field name — created_at_ms, not created_at — instead of trusting a comment nobody reads.

Two further details cause real incidents. The Year 2038 problem: anything storing Unix time in a signed 32-bit integer overflows on 19 January 2038 at 03:14:07 UTC, so check column types and language types before that becomes urgent. Formatting is the other trap. An ISO 8601 string with an explicit offset, such as 2026-11-12T09:30:00Z, is unambiguous, but the same string without an offset is parsed as local time by JavaScript and by some tools, yet as UTC by others. The safe convention is to store and transmit UTC, render local time only at the last moment, and keep the offset attached to any human-readable string. Remember too that a local wall time is not always unique: when daylight saving ends, 02:30 occurs twice in much of Europe and North America, and a timestamp alone cannot say which one was meant.

How to use

  1. View the current timestamp: the top card shows live seconds and milliseconds along with the matching local time.
  2. Timestamp to date: type a timestamp on the left; seconds or milliseconds are detected automatically, or pick the unit yourself.
  3. Date to timestamp: choose a date and time on the right (in your local timezone) to get the seconds and milliseconds timestamps.
  4. Copy a result: click the Copy button next to any value to copy it to the clipboard.
  5. Store UTC, display local: keep numeric timestamps or ISO strings with a Z suffix in databases, logs and APIs, and apply the user’s timezone only in the view layer.
  6. Check the unit before debugging anything else: a converted date in 1970 usually means seconds were read as milliseconds, and a date thousands of years away means the opposite. Normalise once at the edge of your system rather than at every call site.

FAQ

What is the difference between seconds and milliseconds timestamps?

A seconds timestamp has 10 digits (e.g. 1730000000) and a milliseconds timestamp has 13 digits (e.g. 1730000000000). The tool detects this from the digit count, and you can also set the unit manually.

Which timezone are the results in?

Local time uses your device timezone, while UTC and ISO 8601 always use Coordinated Universal Time, so you can compare both.

Is my data uploaded?

No. All conversions run locally in your browser with JavaScript; nothing is sent anywhere.

Does it support negative or very old / future dates?

Yes. Negative timestamps represent dates before 1970. Due to JavaScript date limits, roughly ±100 million days are representable.

Why does my converted date show 1970 or the year 52000?

The value and the expected unit disagree. A seconds value interpreted as milliseconds is roughly a thousand times too small and resolves to early January 1970; a milliseconds value interpreted as seconds is a thousand times too large and lands far in the future. Check how many digits the input has and pick the unit explicitly instead of relying on auto detection.

What is the Year 2038 problem?

Unix time stored in a signed 32-bit integer reaches its maximum on 19 January 2038 at 03:14:07 UTC and then wraps around to a negative value, which makes dates jump back to 1901. It affects old C code, some embedded systems and any schema still using a 32-bit integer for time. Moving to 64-bit integers or millisecond timestamps removes the limit.

Does Unix time count leap seconds?

No. Every day is treated as exactly 86,400 seconds, while UTC occasionally inserts a leap second to stay close to the Earth’s rotation. That is why Unix time can be about a second away from astronomical time. If you need to measure a physical duration precisely, use a monotonic clock such as performance.now() rather than subtracting wall-clock timestamps.

Why do two computers show different dates for the same timestamp?

Because they render it in different local timezones, or one of them has a wrong timezone configured. The underlying instant is identical. Compare the UTC and ISO 8601 rows in this tool; if those match everywhere, the local readings differ only by their offsets, including daylight saving rules.

Should I store seconds or milliseconds?

Seconds are the convention for Unix APIs and most databases, and a 64-bit seconds value is valid for billions of years. Milliseconds are what JavaScript produces and expects. Either is fine as long as it is consistent within a system and the unit is recorded in the schema or the field name.

Why is a date I sent to the browser one day off?

Date-only strings such as 2026-11-12 are parsed as UTC midnight by the JavaScript Date constructor, while date-time strings without an offset are parsed as local time. That asymmetry is why the displayed day can differ by one. Always include an explicit offset, or parse the parts yourself.