Timestamp Converter

Convert a Unix timestamp to a readable date — in UTC, your local time and ISO 8601 — and turn a date back into Unix seconds and milliseconds. Runs in your browser.

Developer Tools Free No upload Instant

Loading Timestamp Converter…

Your browser is preparing the tool. It runs 100% locally.

Quick Answer

Paste a Unix timestamp and the tool shows the date in UTC, your local time and ISO 8601 format; pick a date and it gives you back the Unix time in seconds and milliseconds. Unix time counts the seconds since 1 January 1970 UTC. The tool reads a ten-digit value as seconds and a longer one as milliseconds. It runs entirely in your browser.

What the Timestamp Converter Does

It works both directions. Type a Unix timestamp and you immediately see three readings — the UTC date and time, the same moment in your device's local timezone, and the ISO 8601 string — so you can read an epoch value from a log or an API. Pick a date and time and it returns the matching Unix value in both seconds and milliseconds.

A current-time button fills in the present moment, which is handy for grabbing a timestamp to drop into code or a test. Everything updates as you type.

How It Works

Unix time is the number of seconds since the epoch — midnight UTC on 1 January 1970 — so the tool turns a timestamp into a date by counting that many seconds forward. It detects the unit by length: a value of ten digits or fewer is read as seconds, and a longer one as milliseconds, since a seconds value passed the ten-digit mark only recently and milliseconds values are three digits longer.

The UTC reading is the unambiguous one; the local reading applies your device's timezone offset to the same instant; and the ISO 8601 string is the standard machine-readable format. Converting the other way, a chosen date is expressed as whole seconds (rounded down) and as milliseconds.

Data source & conversion logic

  1. Read the value. Take the timestamp, or the chosen date and time.
  2. Detect seconds or milliseconds. Treat a value of ten digits or fewer as seconds; a longer one as milliseconds.
  3. Convert to the instant. Count that many seconds (or milliseconds) from the 1970 UTC epoch.
  4. Show the readings. Display UTC, local time and ISO 8601 — or, for a date, the Unix seconds and milliseconds.

Unix time

Unix time = seconds since 1970-01-01 00:00:00 UTC (leap seconds ignored) ten digits → seconds · thirteen digits → milliseconds
Worked example
1700000000 → Tue, 14 Nov 2023 22:13:20 UTC

The tool reads ten digits or fewer as seconds and longer values as milliseconds.

Technical Details

Epoch1 January 1970, 00:00:00 UTC
Timestamp to dateUTC, local, ISO 8601
Date to timestampseconds and milliseconds
Unit detectionten digits or fewer is seconds, longer is milliseconds
Local timeuses your device timezone
Leap secondsignored (as in Unix time)
Where it runsIn your browser — nothing uploaded

Standards & references

  • Unix epoch — Unix time counts seconds since 00:00:00 UTC on 1 January 1970, not counting leap seconds; it is the timekeeping basis for most computer systems.
  • Seconds vs milliseconds — a ten-digit value is normally seconds; a thirteen-digit value is milliseconds (a thousand times larger). The tool picks the unit by length.
  • ISO 8601 — the international date-time format (such as 1970-01-01T00:00:00Z) that this tool also outputs, designed to be unambiguous across systems.

Accuracy & Limitations

It detects seconds versus milliseconds by the number of digits — ten or fewer means seconds. That is right for almost all timestamps today, but an unusual value can fool it: a milliseconds value from the early 1970s has few digits and would be misread as seconds, and a seconds value beyond the year 2286 has eleven digits and would be misread as milliseconds.

The local reading depends on your device's timezone and clock. The same instant shows a different wall-clock time on a machine set to another zone; the UTC and ISO readings are the ones that are the same everywhere.

Unix time ignores leap seconds, by definition. It is a count of seconds since 1970 as if every day were exactly 86,400 seconds, so it can differ by a handful of seconds from strict astronomical time — which is intentional and standard.

This is a browser tool using 64-bit dates, so the famous Year 2038 problem does not affect it. That bug hits systems that store Unix time in a signed 32-bit integer, which overflows in January 2038; browsers handle dates far beyond that.

Whole seconds are rounded down. Converting a date that includes a fractional part to seconds truncates rather than rounds, so the seconds value is the floor of the exact time.

Real-World Use Cases

Reading logs

Turn an epoch value in a log line into a readable date.

API debugging

Decode timestamps returned by an API into UTC and local time.

Writing code

Grab the current Unix time in seconds or milliseconds for a test or config.

Cross-checking time zones

See the same instant in UTC and your local time at once.

When to use it — and when not to

Good for

  • Reading Unix timestamps as dates
  • Getting the current epoch in seconds or milliseconds
  • Decoding API or log timestamps
  • Seeing UTC, local and ISO at once

Not the best choice for

  • Converting between arbitrary named time zones
  • Date arithmetic (differences, adding days)
  • Sub-second or nanosecond precision
  • Calendar work beyond a single instant

Need the gap between two dates? Use a date-difference calculator. Converting between named time zones (not just UTC and local)? A world-clock or timezone tool handles that. Working with durations? A time-duration calculator fits better.

Frequently Asked Questions

What is a Unix timestamp?
It is the number of seconds since the Unix epoch — midnight UTC on 1 January 1970. Most computer systems track time this way, so timestamps show up in logs, databases and APIs.
How does it know if my value is seconds or milliseconds?
By length. A value of ten digits or fewer is read as seconds; a longer value is read as milliseconds, which are a thousand times larger and so three digits longer.
What is the difference between UTC and local time here?
UTC is the same instant everywhere, with no timezone offset. The local reading applies your device's timezone to that instant, so it matches your wall clock. The ISO 8601 string is the standard, unambiguous format.
Does this tool have the Year 2038 problem?
No. That bug affects systems storing Unix time in a signed 32-bit integer, which overflows in January 2038. This tool uses the browser's 64-bit dates, which work for hundreds of thousands of years.
Why does Unix time ignore leap seconds?
By definition it counts as if every day is exactly 86,400 seconds. Leap seconds are skipped, so Unix time can differ from strict astronomical time by a few seconds — that is standard and expected.
How do I get the current timestamp?
Use the current-time button, which fills in the present moment, then read the seconds and milliseconds it produces.
What is ISO 8601?
An international standard for writing dates and times, like 2023-11-14T22:13:20Z. It is unambiguous across systems and time zones, which is why it is a good format to store or exchange.
Can it convert between two named time zones?
No. It shows UTC and your local time only. For arbitrary named zones, use a world-clock or timezone converter.
Why are the seconds rounded down?
A date can carry a fractional second; the seconds value is the whole-second floor of it. Use the milliseconds value if you need finer precision.
What does the Z in the ISO string mean?
It marks UTC — Zulu time — meaning no offset from Coordinated Universal Time. A date with an offset would show something like plus 05:30 instead.
Is my data uploaded?
No. All conversion happens in your browser; nothing is sent anywhere.
What timestamp was the epoch itself?
Zero. A Unix timestamp of 0 is exactly the epoch: 1 January 1970, 00:00:00 UTC.

References

Counts seconds from the 1 January 1970 UTC epoch and detects seconds versus milliseconds by digit length (ten or fewer is seconds); it is explicit that leap seconds are ignored, that the local reading depends on the device timezone, and that the browser's 64-bit dates avoid the 32-bit Year 2038 problem.

PopularHot

JSON Formatter

JSON Formatter for developers — instant, offline-style and privacy-safe.

DeveloperOpen Tool
Popular

JSON Validator

JSON Validator for developers — instant, offline-style and privacy-safe.

DeveloperOpen Tool
Popular

Base64 Encoder

Base64 Encoder for developers — instant, offline-style and privacy-safe.

DeveloperOpen Tool
Popular

Hash Generator

Fast, free Hash Generator that runs entirely client-side in your browser.

DeveloperOpen Tool
Popular

UUID Generator

Fast, free UUID Generator that runs entirely client-side in your browser.

DeveloperOpen Tool
Trending

CSS Minifier

Fast, free CSS Minifier that runs entirely client-side in your browser.

DeveloperOpen Tool

Ready to try the Timestamp Converter?

It is free, private and runs entirely in your browser — no sign-up, no uploads, no limits.