Unix Timestamp Converter

Convert epoch time to a readable date and back. Handles seconds, milliseconds, microseconds and nanoseconds.

100% Free Private & Secure Instant Conversion
Current Unix time
—
— ms

Timestamp → Date

UNIT—
UTC—
LOCAL—
ISO 8601—
RELATIVE—

Date → Timestamp

SECONDS—
MS—

How to Convert a Unix Timestamp to a Date

Three steps, no signup

1

Enter a timestamp or date

Paste a Unix timestamp into the first box, or pick a date and time in the second. The current time is filled in for you.

2

Read the result

The converter shows the date in UTC, local time, ISO 8601 and relative time, or the timestamp in seconds and milliseconds.

3

Copy the value

Click Copy next to the value you need and paste it into your code, log search or database query.

What Is Unix Time and How Does a Timestamp Converter Work?

Unix time, also called epoch time or POSIX time, counts the seconds that have passed since 00:00:00 UTC on 1 January 1970. That starting point is the Unix epoch. Because one integer describes any moment, timestamps are easy to store, sort and compare, which is why logs, databases and APIs use them so often.

Unix time ignores leap seconds, so every day counts as exactly 86,400 seconds. For example, 1767225600 is 1 January 2026 at 00:00:00 UTC. Negative numbers are moments before 1970: -86400 is 31 December 1969. This converter turns a timestamp into a readable date, turns a date back into a timestamp, and shows the current Unix time at the top of the page.

Seconds vs Milliseconds

Shell tools, PHP and most databases use seconds, which gives a 10-digit number today. JavaScript and Java use milliseconds, which gives 13 digits. Some tracing and database tools use microseconds (16 digits) or nanoseconds (19 digits). In Auto mode the converter reads up to 11 digits as seconds, 12 to 14 as milliseconds, 15 to 17 as microseconds and 18 or more as nanoseconds. Pick a unit yourself if the guess is wrong.

If a date lands in January 1970, a value in seconds was probably read as milliseconds. If it lands tens of thousands of years from now, a value in milliseconds was read as seconds.

The Year 2038 Problem

Older systems store Unix time in a signed 32-bit integer. The largest value it can hold is 2147483647, which is 03:14:07 UTC on 19 January 2038. One second later the number wraps to -2147483648, which reads as December 1901. Systems with 64-bit timestamps are not affected, since they can count about 292 billion years in either direction. Paste 2147483647 into the converter to see the limit for yourself.

Time Zones and Unix Time

A Unix timestamp has no time zone. It is the same number in Tokyo, London and New York. A time zone only matters when you write the moment as a calendar date. The Timestamp to Date panel shows both UTC and your local time, and the Date to Timestamp panel lets you choose whether the date you enter is local or UTC. The same wall-clock time gives different timestamps in different zones. Store and send timestamps or UTC dates, and convert to local time only when you display them.

Get the Current Timestamp in Code

LanguageSecondsMilliseconds
JavaScriptMath.floor(Date.now() / 1000)Date.now()
Pythonint(time.time())time.time_ns() // 1_000_000
PHPtime()(int) (microtime(true) * 1000)
JavaInstant.now().getEpochSecond()System.currentTimeMillis()
Gotime.Now().Unix()time.Now().UnixMilli()
MySQLSELECT UNIX_TIMESTAMP();SELECT CAST(UNIX_TIMESTAMP(NOW(3)) * 1000 AS UNSIGNED);
PostgreSQLSELECT floor(extract(epoch FROM now()));SELECT floor(extract(epoch FROM now()) * 1000);
Bashdate +%sdate +%s%3N (GNU date)

Frequently Asked Questions

Common questions about Unix time and epoch timestamps

A Unix timestamp is the number of seconds that have passed since 00:00:00 UTC on 1 January 1970, not counting leap seconds. It is also called epoch time or POSIX time.

Paste the timestamp into the Timestamp to Date box. The converter detects whether it is in seconds, milliseconds, microseconds or nanoseconds and shows the date in UTC, your local time zone and ISO 8601.

Pick a date and time in the Date to Timestamp box, choose Local or UTC, and copy the seconds or milliseconds value. The Now button fills in the current time.

Count the digits. A current timestamp in seconds has 10 digits and one in milliseconds has 13. Auto mode uses this rule, and you can pick a unit manually if the guess is wrong.

Systems that store Unix time in a signed 32-bit integer run out of range at 03:14:07 UTC on 19 January 2038. The next second wraps to a negative number. Systems that use 64-bit integers are not affected.

No. A Unix timestamp is the same number everywhere on Earth. A time zone only changes how that moment is written as a calendar date, which is why this tool shows both UTC and local time.

More Free Image & Dev Tools

Convert images, data and code in your browser. All free, all private, no signup.

Browse All Tools