TechnoSuffice logo
Get a Free Quote

postinghunt@gmail.com

Free online tool

Unix Timestamp Converter

Convert Unix timestamps to readable dates and back — in seconds or milliseconds, in your timezone or any other.

Current Unix timestamp—

Timestamp → Date

Date → Timestamp

Batch convert one timestamp per line

TimestampDate (UTC)Local
Results appear here.

Get the current timestamp in code

PHPtime(); // milliseconds: (int) round(microtime(true) * 1000)
Laravelnow()->timestamp; // Carbon::createFromTimestamp($ts)
JavaScriptMath.floor(Date.now() / 1000); // new Date(ts * 1000)
Pythonimport time; int(time.time())
MySQLSELECT UNIX_TIMESTAMP(); -- FROM_UNIXTIME(ts)
PostgreSQLSELECT EXTRACT(EPOCH FROM NOW())::int;
JavaSystem.currentTimeMillis() / 1000L;
C#DateTimeOffset.UtcNow.ToUnixTimeSeconds();
Gotime.Now().Unix()
Bashdate +%s

Everything is calculated in your browser.

How it works

How to use the Unix Timestamp Converter

01

Paste a timestamp

Seconds, milliseconds or microseconds are detected.

02

See the date

Local, UTC, ISO 8601, relative time and more.

03

Or pick a date

Get the timestamp for any date and time.

Features

Why use our Unix Timestamp Converter?

Live epoch clock

The current Unix time, updated every second.

Auto-detect unit

Seconds, milliseconds, microseconds, nanoseconds.

Any timezone

See the date in Karachi, Dubai, London, New York…

Many formats

ISO 8601, RFC 2822, SQL DATETIME, relative time.

Batch convert

Convert a list of timestamps at once.

Code snippets

Get the current time in PHP, JS, Python, SQL and more.

FAQ

Frequently asked questions

Everything you need to know about the Unix Timestamp Converter.

Back to the tool

What is a Unix timestamp?

It is the number of seconds since 1 January 1970 00:00:00 UTC (the Unix epoch). It is used by servers, databases and APIs to store time.

Seconds or milliseconds?

A 10-digit number is seconds (PHP, MySQL, Unix). A 13-digit number is milliseconds (JavaScript Date.now()). The converter detects this automatically.

Does a timestamp have a timezone?

No. A timestamp is always UTC. It is only shown in a timezone when converted to a date.

What is the year 2038 problem?

Systems that store timestamps as signed 32-bit numbers overflow on 19 January 2038. Modern 64-bit systems are not affected.

How do I get the current timestamp in PHP?

Use time() for seconds, or round(microtime(true) * 1000) for milliseconds. The tool shows snippets for other languages too.

Have a project in mind? Let’s build it together.

Get a free consultation and a fixed-price quote within 24 hours.