Unix Timestamp Converter

Convert Epoch time to human dates

How to Use Unix Timestamp Converter

  1. Paste a timestamp into the top box. It's read as seconds, or as milliseconds if it has more than 11 digits.
  2. Or use the date and time picker to go the other way. The picker works in your own time zone.
  3. Read the result as local time, UTC and ISO 8601, plus the value in both seconds and milliseconds.
  4. Click the copy icon next to any line to copy it, or press Now to load the current time.

What a Unix timestamp is

A Unix timestamp, also called epoch time or POSIX time, is the number of seconds since midnight UTC on 1 January 1970, not counting leap seconds. 0 is that moment, 86400 is exactly one day later, and negative numbers are dates before 1970.

A timestamp has no time zone. 1700000000 is the same instant everywhere on Earth: 14 November 2023 at 22:13:20 UTC. Only the way it's displayed changes from place to place, which is why the tool shows your local time and UTC side by side.

Seconds or milliseconds?

Most databases, Unix tools and APIs use seconds, which today is a 10-digit number. JavaScript's Date.now(), Java and many logging tools use milliseconds, which is 13 digits. Reading a millisecond value as seconds lands you tens of thousands of years in the future, and that's the usual sign the two have been mixed up.

This converter decides by length: up to 11 digits are treated as seconds, anything longer as milliseconds. The line under the input box tells you which one it used.

The year 2038 problem

Older systems store the timestamp as a signed 32-bit integer, which can't go past 2147483647. That's 03:14:07 UTC on 19 January 2038. One second later the number wraps round to a negative value, and those systems think it's December 1901. Most modern software uses 64-bit time and isn't affected, but the limit still lurks in old embedded devices and some legacy databases. Paste 2147483647 above to see the exact moment.

Key Features & Practical Use Cases

  • Reading the created_at or exp value in an API response, database row or log file.
  • Checking when a JWT or session token expires from its exp claim.
  • Getting the timestamp for a specific date to use in a query, cron job or test.
  • Comparing a server's UTC time with your local time while debugging.

Frequently Asked Questions

How do I get the current Unix timestamp?

Click Now. In code it's Math.floor(Date.now() / 1000) in JavaScript, time.time() in Python, or date +%s in a Unix shell.

Why does my date come out in January 1970?

Usually a seconds value was treated as milliseconds somewhere, which divides it by 1,000. In this tool that only happens with very small numbers; in your own code, check whether the function expects seconds or milliseconds.

Does it handle time zones and daylight saving?

The local time uses your device's time zone, including its daylight saving rules. UTC and ISO 8601 are shown too, and those never change with location.

Does Unix time count leap seconds?

No. Every day is treated as exactly 86,400 seconds, which is what keeps the conversion simple arithmetic.

About OneClickly

OneClickly is a set of 119 free tools for PDFs, images, text, everyday math and code. They run in your browser, so the files and text you work with stay on your device.

Related Tools

  • Stopwatch Timer - Online stopwatch with lap and split times that stays accurate in background tabs.
  • Pomodoro Timer - Focus timer with 25-minute sessions, short and long breaks and a beep at the end.
  • Countdown Timer - Countdown timer in hours, minutes and seconds with presets and an alarm beep.
  • Barcode Generator - Make Code 128, Code 39, EAN-13, EAN-8 and UPC barcodes and download them as PNG images.
  • QR Code with Logo - Make a QR code with your own logo in the centre and download it as a PNG.
  • Wi-Fi QR Code - Make a QR code that connects phones to your Wi-Fi without typing the password.