Home › Generators & Text Tools › Unix Timestamp Converter

Unix Timestamp Converter

Programmers, logs and databases all tell time as one long number — seconds counted from 1 January 1970. This free Unix timestamp converter turns that number back into a date you can read, in UTC and in Indian time (IST), and also converts any date and time back into a timestamp. It even auto-detects whether your number is in seconds, milliseconds or microseconds from its length. The current epoch time is ticking live at the top of the tool.

—
—

Thursday, 1 January 2026, 00:00:00 UTC
Seconds — 10 digits
Date & time (UTC)Thursday, 1 January 2026, 00:00:00
Date & time (IST, UTC+5:30)Thursday, 1 January 2026, 05:30:00
Your local time—
Relative—

Pick a date and press the button.

How to use this converter

  1. Watch the live clock at the top if you just need the current epoch time — it updates every second.
  2. To decode a timestamp, paste it into the box. Leave the unit on Auto unless you know it is wrong; the tool reads the unit from the number of digits.
  3. Press Convert timestamp and read the date in UTC, in IST and in your own local time, plus how long ago (or ahead) it is.
  4. To go the other way, pick a date and time in the lower box and press Convert date to timestamp, then copy the seconds value.

Seconds, milliseconds or microseconds?

A Unix timestamp counts from the "epoch" — midnight at the start of 1 January 1970, UTC. Different systems count in different units, and the easiest way to tell them apart is the length of the number, which is exactly what Auto-detect does:

10 digits or fewer = seconds · 11–13 digits = milliseconds (÷1,000) · 14–16 digits = microseconds (÷1,000,000)
UnitTypical digits todayUsed byExample for 1 Jan 2026
Seconds10PHP, MySQL, most APIs, Linux `date +%s`1767225600
Milliseconds13JavaScript Date.now(), Java1767225600000
Microseconds16High-precision logs, some databases1767225600000000
Nanoseconds19Scientific and trading systemsNot converted here — divide by 1,000 first

If Auto ever guesses wrong for an unusual value — a millisecond timestamp from 1970-something can be short — set the unit yourself in the dropdown; your choice always wins. Negative timestamps, for dates before 1970, work too: −1 is one second before the epoch began.

Worked example

The box starts with 1767225600. It has 10 digits, so Auto reads it as seconds. Counted from the 1970 epoch, that lands on Thursday, 1 January 2026, at 00:00:00 UTC — midnight on New Year's Day. India is five and a half hours ahead of UTC, so the same moment in IST is 05:30:00 on 1 January 2026 — half past five in the morning. The relative line measures the gap between that moment and right now, so it will describe the example as in the past by however many days have passed since New Year. Try the same moment in milliseconds — 1767225600000 — and you get exactly the same two clock times, because it is the same instant wearing a longer number.

FAQ

What is a Unix timestamp?

It is a single number that means a moment in time: the count of seconds that have passed since 00:00:00 UTC on 1 January 1970, an instant called the epoch. Storing time as one number makes computers happy — sorting, comparing and adding durations become simple arithmetic, with no time zones or month lengths to argue about. The price is that humans cannot read it: 1767225600 means nothing until a converter like this one turns it into Thursday, 1 January 2026. Unix time ignores leap seconds, so it is very slightly different from a stopwatch count of real seconds since 1970, but every system agrees on it, which is what matters.

Why does my timestamp show a date in 1970 or the year 50000?

Almost always a unit mix-up — the most common bug in all of timestamp work. If you feed a millisecond value (13 digits) into something expecting seconds, it lands tens of thousands of years in the future; feed seconds where milliseconds are expected and you land in January 1970. This converter guards against it in two ways: Auto-detect reads the unit from the digit count — 10 or fewer digits means seconds, 11 to 13 means milliseconds, 14 to 16 means microseconds — and the result always tells you which unit it used, so a wrong guess is visible at once. If the date still looks absurd, set the unit manually and convert again.

What is the difference between UTC and IST in the results?

UTC is the world's reference clock, kept at the old Greenwich meridian. IST — Indian Standard Time — is UTC plus five hours thirty minutes, all year round, because India does not use daylight saving. So to read a timestamp the Indian way, a converter takes the UTC moment and adds 5:30; midnight UTC on 1 January is 05:30 the same morning in India. The dates can differ near midnight: 20:00 UTC on 31 December is already 01:30 on 1 January in India. Your local time is shown as a third line because your browser knows your own time zone — useful when the timestamp came from a server in yet another country.

When does Unix time run out?

On 19 January 2038, at 03:14:07 UTC — if the system stores the count in a signed 32-bit integer, which tops out at 2,147,483,647 seconds. That is the famous Year 2038 problem, the younger cousin of the Y2K bug, and it still lurks in old software and embedded devices. Systems using 64-bit counts are safe for about 292 billion years, so the fix is simply wider storage, and most modern platforms made the switch long ago. There is no matching start problem: negative timestamps count backwards from the epoch, so −86400 is exactly 31 December 1969 — this converter handles them like any other value.

How do I get the current timestamp in code?

In JavaScript, Date.now() gives milliseconds — divide by 1000 for seconds. In Python, time.time() gives seconds as a decimal; in PHP, time() gives seconds; in a Linux or Mac terminal, date +%s prints seconds. SQL databases usually have UNIX_TIMESTAMP() or EXTRACT(EPOCH FROM …). The live clock at the top of this tool shows the same value your code would produce, updating every second, which makes it handy for a quick sanity check when a log line looks wrong — compare the log's number with the live one and the size of the gap usually tells you which unit went astray.

Does this converter store or send my timestamps?

No. Every conversion happens in your own browser with JavaScript; the numbers you paste never leave the page, and nothing is logged or saved. That makes the tool safe for timestamps from private systems — production logs, database rows, token expiry fields and the like. The page does read your device clock for the live ticker, the local-time line and the relative 'days ago' figure, but reading your clock is not sending anything anywhere. Close the tab and the values you entered are gone with it.

Disclaimer: Conversions are computed in your browser from the standard Unix epoch. IST is shown as a fixed UTC+5:30 (India has no daylight saving). For legal or financial records, confirm critical timestamps against the system that produced them.