Unix Timestamp Converter

Convert a Unix timestamp to a date, or a date to a timestamp. The tool auto-detects seconds, milliseconds, and microseconds, and shows the result in UTC and your local timezone.

Current Unix time: seconds · ms ·
How to do this in code (6 languages)
JavaScript
const ts = Math.floor(Date.now() / 1000);
const date = new Date(ts * 1000).toISOString();
Python
import time, datetime
ts = int(time.time())
date = datetime.datetime.utcfromtimestamp(ts).isoformat()
PHP
$ts   = time();
$date = gmdate('c', $ts);
Bash
date +%s
date -u -d @1762704000 +"%Y-%m-%dT%H:%M:%SZ"
Go
ts   := time.Now().Unix()
date := time.Unix(ts, 0).UTC().Format(time.RFC3339)
Java
long ts = Instant.now().getEpochSecond();
String d = Instant.ofEpochSecond(ts).toString();

How to convert a Unix timestamp

1

Paste the timestamp

Type or paste your number into the input field. The tool detects whether it is in seconds (10 digits), milliseconds (13 digits), or microseconds (16 digits), and converts it as you type.

2

Read the date

You get five formats at once: UTC, your local timezone, ISO 8601, RFC 2822, and a friendly relative time like "3 hours ago". The day of the week is shown too.

3

Copy what you need

Each format has its own copy button. For lots of timestamps, switch to the Batch tab, paste them one per line, and copy the whole table as TSV for a spreadsheet.

Unix Timestamp Converter

What is a Unix timestamp?

A Unix timestamp is a number that represents a specific moment in time. It counts the seconds (or milliseconds, or microseconds) that have passed since January 1, 1970 at midnight UTC. That starting point is called the Unix epoch, which is why timestamps are sometimes called epoch time.

Computers prefer Unix timestamps because they are plain numbers. No timezones, no months, no leap-year confusion. A timestamp like 1700000000 means the same moment everywhere in the world. That makes it perfect for log files, databases, and APIs.

The trouble is that humans cannot read them at a glance. This tool fixes that. Paste any timestamp at the top of the page and you will see the matching date and time in five formats. Pick a date and get the timestamp in seconds, milliseconds, and microseconds.

Why this Unix timestamp converter

Auto-detect format

Paste a 10, 13, or 16 digit number. The tool recognizes whether it is seconds, milliseconds, or microseconds. No mode switching.

UTC and local time

See the same moment in both UTC and your browser timezone, plus ISO 8601 and RFC 2822 for spec-friendly use.

Live current time

A bar at the top shows the current Unix time, ticking once per second. Click "Now" to copy it into the converter.

Batch conversion

Paste many timestamps at once, one per line. Each is detected and converted on its own. Copy the whole table as tab-separated text.

Works both ways

Convert a timestamp to a date, or a date back to a timestamp. The tool gives seconds, milliseconds, and microseconds for any date.

Private and free

All conversions run in your browser. Nothing is uploaded, no signup is required, and there is no rate limit.

Unix timestamp questions, answered

What is a Unix timestamp?
A Unix timestamp is the number of seconds that have passed since January 1, 1970 at 00:00 UTC. This starting point is called the Unix epoch. A current timestamp looks like 1762704000, a 10-digit number that points to a specific second.
How do I convert a Unix timestamp to a date?
Paste the number into the input field at the top of this page. The date appears immediately in five formats, including your local timezone. The tool reads plain seconds (10 digits), milliseconds (13 digits), and microseconds (16 digits) automatically.
How do I convert a date to a Unix timestamp?
Click the "Date to Timestamp" tab, pick a date and time from the picker, and the tool returns the matching Unix timestamp in seconds, milliseconds, and microseconds. You can also choose whether to read the date as your local time or as UTC.
What is the difference between seconds, milliseconds, and microseconds?
Most timestamps online are in seconds (10 digits long). JavaScript and many APIs use milliseconds (13 digits) because the extra precision is useful for events that happen quickly. Some logging tools use microseconds (16 digits) when many events occur within the same second.
Is the converter free? Are there any limits?
Yes, completely free with no limits. There is no signup, no API key, no rate cap. Convert one timestamp or a thousand. The tool keeps working even if you go offline after loading.
Does the tool upload my data anywhere?
No. Every conversion runs in your browser with JavaScript. The numbers and dates you paste stay on your device. Refresh the page and they are gone.
Scroll to Top