Timestamp Converter

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

Updated

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 the Unix time in seconds and milliseconds. Unix time counts the seconds since 1 January 1970 UTC. The tool reads a value of ten digits or fewer as seconds and a longer one as milliseconds. The conversion happens on your device.

What the Timestamp Converter does

It works in both directions. Type a Unix timestamp and you see three readings of it: the UTC date and time, the same moment in your device's timezone, and the ISO 8601 string. That makes an epoch value from a log or an API easy to read. Pick a date and time and you get the matching Unix value in seconds and in milliseconds.

A current-time button fills in the present moment, handy when you need a timestamp for 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 decides the unit by length. Ten digits or fewer is read as seconds, and anything longer as milliseconds, because millisecond values are three digits longer and seconds values only recently reached ten digits.

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 form. Going the other way, a chosen date comes out 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 runsOn your device; nothing is sent

Standards and references

  • Unix epoch: Unix time counts seconds since 00:00:00 UTC on 1 January 1970, not counting leap seconds. Most computer systems keep time this way.
  • Seconds vs milliseconds: A ten-digit value is normally seconds and 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. The tool outputs it too, because it reads the same on every system.

Accuracy and limits

It tells seconds from milliseconds by the number of digits: ten or fewer means seconds. That's right for almost every timestamp in use today, but an odd value can fool it. A milliseconds value from the early 1970s has few digits and would be read as seconds, and a seconds value after the year 2286 has eleven digits and would be read as milliseconds.

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

Unix time ignores leap seconds by definition. It counts as if every day had exactly 86,400 seconds, so it can drift a few seconds from strict astronomical time. That's intended, and every system that uses Unix time does the same.

The tool runs on the browser's 64-bit dates, so the Year 2038 problem doesn't 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. A date with a fractional second is truncated, so the seconds value is the floor of the exact time.

Real-world uses

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 it fits, and when it doesn't

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. For converting between named time zones, not just UTC and local, a world-clock or timezone tool does the job, and durations belong in a time-duration calculator.

Frequently asked questions

What is a Unix timestamp?
It's the number of seconds since the Unix epoch, midnight UTC on 1 January 1970. Most computer systems track time this way, which is why timestamps turn 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 were exactly 86,400 seconds. Leap seconds are skipped, so Unix time can be a few seconds off strict astronomical time. Every system using Unix time behaves this way.
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 reads the same across systems and time zones, which makes it 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 shows something like +05:30 there instead.
Is my data uploaded?
No. The conversion runs on your device, so the timestamps and dates you enter stay there.
What timestamp was the epoch itself?
Zero. A Unix timestamp of 0 is exactly the epoch: 1 January 1970, 00:00:00 UTC.

References

The tool counts seconds from the 1 January 1970 UTC epoch and treats ten digits or fewer as seconds, longer values as milliseconds. Leap seconds are ignored, as in all Unix time. The local reading follows your device's timezone, and 64-bit browser dates keep it clear of the 32-bit Year 2038 bug.

PopularHot

JSON Formatter

Paste messy or minified JSON and get it back pretty-printed with 2-space indentation. The same step tells you whether the JSON is valid.

DeveloperOpen Tool
Popular

Base64 Encoder

Encode any text to standard Base64 in your browser, emoji and accented letters included.

DeveloperOpen Tool
Popular

Hash Generator

Get the MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of any text at once, updated as you type, with a plain note on which ones are still safe for security work.

DeveloperOpen Tool
Popular

UUID Generator

Generate up to 500 random version 4 UUIDs at once, the 128-bit identifiers used for database keys, from your browser's secure random generator.

DeveloperOpen Tool

Base64 Decoder

Decode Base64 back to readable text in your browser, Unicode included, and get a plain error message when the input is broken.

DeveloperOpen Tool

URL Encoder

Percent-encode a value so it can sit safely inside a URL. Spaces, ampersands, slashes and other special characters become %-codes, using the browser's encodeURIComponent.

DeveloperOpen Tool

Back to the Timestamp Converter

Paste or pick your input at the top of the page. The conversion runs on this device and needs no account.