Unix timestamp converter
Convert a Unix timestamp (epoch time) into a normal date and time, or a date into a timestamp. The converter works out whether your number is in seconds, milliseconds or microseconds, and shows the date in Indian Standard Time, UTC and your own time zone, as ISO 8601, and as "3 days ago". The current Unix time ticks at the top, ready to copy.
Timestamp to date
- Your time
- India (IST, UTC+5:30)
- UTC / GMT
- ISO 8601
- Relative
Date to timestamp
How to use the unix timestamp converter
- To read a timestamp, paste it into Unix timestamp. The dates appear straight away.
- To make a timestamp, choose a date, time and time zone.
- Copy the result in seconds or milliseconds.
- Click Copy at the top to grab the current Unix time.
How it works
Unix time counts the seconds since 1 January 1970, 00:00:00 UTC, a moment called the Unix epoch. It's the same everywhere in the world at any moment, which makes it handy for computers, databases and APIs.
- Seconds (10 digits today) are used by Unix, PHP, Python and most APIs.
- Milliseconds (13 digits) are used by JavaScript and Java.
- Microseconds (16 digits) appear in some databases and logs.
The converter treats numbers from 100 billion upward as milliseconds and from 100 trillion upward as microseconds.
India is 5 hours 30 minutes ahead of UTC all year, with no daylight saving. So midnight UTC is 5:30 am IST.
The year 2038 problem: systems that store Unix time as a signed 32-bit number run out at 2147483647, which is 19 January 2038, 03:14:07 UTC. Modern systems use 64-bit numbers and are not affected.
Example
1767225600 is:
- 1 January 2026, 00:00:00 UTC
- 1 January 2026, 5:30:00 am IST
- ISO 8601: 2026-01-01T00:00:00.000Z
In milliseconds the same moment is 1767225600000.
Frequently asked questions
What is a Unix timestamp?
It's the number of seconds since 1 January 1970, 00:00:00 UTC. For example, 1767225600 is the start of 1 January 2026 in UTC.
How do I know if a timestamp is in seconds or milliseconds?
Count the digits. Today, a timestamp in seconds has 10 digits and one in milliseconds has 13. The converter detects this for you.
How do I convert a timestamp to IST?
Paste it above and read the India (IST) line. IST is UTC plus 5 hours 30 minutes, so you can also add 19,800 seconds to the timestamp and read it as UTC.
How do I get the current timestamp in code?
JavaScript: Math.floor(Date.now() / 1000). Python: int(time.time()). PHP: time(). MySQL: UNIX_TIMESTAMP().
Last updated: 29 October 2026