Home › Tools › Developer Tools › Unix Timestamp Converter
Free Developer Tool

Unix Timestamp Converter

Paste any Unix timestamp to see the exact date and time in UTC, India time or your own time zone. The tool works out whether it is in seconds, milliseconds, microseconds or nanoseconds, converts dates back into timestamps, and reads many timestamps from logs at once.

Current Unix Time

0Seconds
0Milliseconds
Loading the current time...

Timestamp to Date

Date to Timestamp

0Seconds
0Milliseconds

Convert Many Timestamps

Copied!

What Is a Unix Timestamp?

A Unix timestamp, also called epoch time or POSIX time, is the number of seconds that have passed since 1 January 1970 at 00:00:00 UTC. That moment is called the Unix epoch. Because it is just one number with no time zone, servers, databases, APIs and analytics tools use it everywhere to store dates.

The catch is that people cannot read it, and different systems use different units. PHP and most server logs count seconds, JavaScript counts milliseconds, and the Google Analytics export to BigQuery stores event_timestamp in microseconds. This converter detects the unit from the number of digits, shows the date in UTC and your chosen time zone, and runs entirely in your browser.

How to Use the Unix Timestamp Converter

  1. Paste a timestamp into Timestamp to Date. The unit is detected for you, or you can set it by hand.
  2. Pick a time zone, such as India (IST) or New York. You see the date in UTC and in that zone, plus ISO 8601, the HTTP date format and how long ago it was.
  3. Go the other way with Date to Timestamp. Choose a date, a time and the zone it belongs to, then copy the seconds or milliseconds.
  4. Convert a whole log by pasting lines into Convert Many Timestamps. The first timestamp on each line is converted, and you can download the result as a CSV.

How Many Digits? Seconds, Milliseconds and More

Digits todayUnitWhere you see it
10SecondsPHP time(), Unix and server logs, JWT exp and iat claims, most APIs
13MillisecondsJavaScript Date.now(), Java, many tracking and ad platform exports
16MicrosecondsGA4 BigQuery event_timestamp, some database and Python tools
19NanosecondsGo UnixNano(), InfluxDB and other monitoring tools

JavaScript dates work in milliseconds, as explained in the MDN Date reference, while the GA4 BigQuery export schema lists event times in microseconds, UTC.

Get the Current Timestamp in Code

Language or toolCode
JavaScriptMath.floor(Date.now() / 1000)
Pythonint(time.time())
PHPtime()
MySQLSELECT UNIX_TIMESTAMP();
Linux or Mac terminaldate +%s
Excel or Google Sheets=A1/86400+DATE(1970,1,1) turns seconds in A1 into a date

Practical Tips

Work With Time in Your Projects

Scheduling scripts? Read how to set up PHP cron jobs, then learn to read crawl times in Python log file analysis for Googlebot and keep errors traceable with PHP error logging and monitoring. Checking when a login token expires? Paste it into the Base64 and JWT decoder.

Frequently Asked Questions

1What is a Unix timestamp?

It is the number of seconds since 1 January 1970 at 00:00:00 UTC, called the Unix epoch. It has no time zone, so the same timestamp means the same moment everywhere. Some systems count milliseconds or microseconds instead of seconds.

2How do I convert a Unix timestamp to a date in Excel or Google Sheets?

Use =A1/86400+DATE(1970,1,1) and format the cell as a date and time. The result is in UTC. For India time add 5.5/24, and if the timestamp is in milliseconds divide by 86400000 instead of 86400.

3Why does my timestamp show a date in 1970 or thousands of years from now?

The unit is wrong. A millisecond value read as seconds lands far in the future, and a seconds value read as milliseconds lands in January 1970. Count the digits: 10 is seconds, 13 is milliseconds and 16 is microseconds.

4What is the Year 2038 problem?

Systems that store Unix time as a signed 32 bit integer can only count up to 2147483647, which is 19 January 2038 at 03:14:07 UTC. After that the number overflows. Modern systems use 64 bit time, which lasts for billions of years.

Related Articles

More Free Developer Tools

See all developer tools →  |  Browse every free tool →