Unix Timestamp Converter

A free Unix timestamp converter and epoch converter. Turn a Unix timestamp into a human date, or a date into a timestamp. Auto-detects seconds, milliseconds, and microseconds, and shows the result in UTC and your local timezone.

Current Unix timestamp
Milliseconds
UTC (ISO 8601)
Auto-detects the unit: 10 digits = seconds, 13 = milliseconds, 16 = microseconds.
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 (epoch time)?

A Unix timestamp is a single number that represents an exact moment in time. It counts the seconds that have passed since January 1, 1970 at 00:00:00 UTC. That starting point is called the Unix epoch, which is why a Unix timestamp is also known as epoch time, POSIX time, or simply Unix time.

Computers prefer timestamps because they are plain integers. There are no timezones, months, or leap-year rules to store. The value 1700000000 points to the same instant everywhere on earth, so epoch time is ideal for log files, databases, JWT tokens, and API responses. The catch is that people cannot read a raw number at a glance, which is exactly what this Unix timestamp converter fixes.

Seconds, milliseconds, and microseconds

The length of the number tells you its unit. This converter auto-detects the three most common precisions, so you never have to pick a mode before you convert a timestamp to a date.

Digits Unit Example Common in
10 Seconds 1700000000 Linux, PHP, databases
13 Milliseconds 1700000000000 JavaScript, Java
16 Microseconds 1700000000000000 Python, high-precision logs

Some systems store nanoseconds (19 digits), but seconds and milliseconds cover almost everything you will meet in day to day work.

Unix timestamp reference cheat sheet

Because a timestamp is just a count of seconds, date math becomes simple addition. Add 86400 to any timestamp and you land on the same time tomorrow. These are the values worth keeping close.

Time span Seconds to add
1 minute 60
1 hour 3,600
1 day 86,400
1 week 604,800
30 days 2,592,000
365 days 31,536,000

Why Unix time starts in 1970

The engineers who built early Unix systems in the late 1960s needed a fixed reference point. They picked the start of 1970 as a round, recent date, and counted seconds forward from there. The choice stuck, and today almost every operating system, programming language, and database measures time the same way. A negative timestamp simply refers to a moment before 1970.

The year 2038 problem

Older systems store the timestamp in a signed 32-bit integer, which runs out of room on January 19, 2038. At that point the counter overflows and could roll back to 1901. Modern 64-bit systems have already fixed this by using a larger number that will not overflow for billions of years, but the 2038 problem is still worth knowing when you work with legacy code.

Whatever unit or timezone you are working in, paste a number into the converter above to read it as a human date, or switch to Date to Timestamp to go the other way.

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:00 UTC, a moment called the Unix epoch. It is a timezone-free way to store an exact point in time as a plain number, which is why databases, log files, and APIs rely on it.
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 instantly in five formats, including your local time and UTC. The tool auto-detects whether the value is in seconds, milliseconds, or microseconds, so there is nothing to configure.
How do I convert a date to a Unix timestamp?
Click the "Date to Timestamp" tab, pick a date and time, and choose whether to read it as local time or UTC. The converter returns the matching Unix timestamp in seconds, milliseconds, and microseconds, each with its own copy button.
What is the Unix timestamp right now?
The live bar at the top of this page shows the current Unix timestamp, updating every second. Click the copy button to grab it, or press "Use now" to load the current epoch time straight into the converter and see today's date in every format.
How many digits is a Unix timestamp?
A Unix timestamp in seconds is 10 digits until the year 2286. Millisecond timestamps are 13 digits and microsecond timestamps are 16 digits. This converter reads the length of the number and auto-detects the unit for you, so a 13-digit value is treated as milliseconds automatically.
What is the difference between seconds, milliseconds, and microseconds?
They are the same moment measured at different precision. Seconds (10 digits) are the classic Unix format used by Linux and PHP. Milliseconds (13 digits) are standard in JavaScript and Java. Microseconds (16 digits) show up in Python and high-precision logging. The tool detects all three by digit count.
Why does Unix time start in 1970?
Early Unix developers chose January 1, 1970 as a simple, recent reference point and counted seconds from there. The convention spread to nearly every operating system and programming language, so epoch time is now a near-universal standard. Timestamps before 1970 are written as negative numbers.
What is the year 2038 problem?
Systems that store a timestamp in a signed 32-bit integer overflow on January 19, 2038, and can reset to 1901. Modern 64-bit systems already avoid this by using a larger number. It only affects legacy software, but it is a good reason to store timestamps in 64-bit fields.
Is the Unix timestamp converter free? Are there limits?
Yes, it is completely free with no limits. There is no signup, no API key, and no rate cap. Convert one timestamp or a thousand in the Batch tab. Everything runs in your browser, so it stays fast no matter how many values you convert.
Does the tool upload my data anywhere?
No. Every conversion runs in your browser with JavaScript. The numbers and dates you enter never leave your device and nothing is sent to a server. You can refresh or close the tab and no record of your input remains.
Scroll to Top