Unix Timestamp Converter

Turn a Unix timestamp into a readable date in your time zone, UTC and India time, or turn a date and time back into a timestamp.

Current Unix time
Seconds
-
Milliseconds
-
Timestamp to date
Your local time
-
UTC
-
India (IST, UTC+05:30)
-
ISO 8601
-
Relative
-
Read as
-
Date to timestamp
Seconds
-
Milliseconds
-
ISO 8601 (UTC)
-

What a Unix timestamp is

A Unix timestamp counts the seconds that have passed since a fixed moment called the Unix epoch: midnight UTC on 1 January 1970. The number 0 is that moment, 86400 is exactly one day later, and a negative number is a moment before 1970. Because it is a single plain number with no time zone and no calendar attached, it is how most databases, log files, APIs, cookies and JSON Web Tokens record time. The same timestamp names the same instant everywhere on Earth; only the way you display it changes from place to place.

You need a converter whenever a raw number meets a human: an API response with "created_at": 1700000000, an exp claim in a token that seems to expire too early, a log line from a server in another country, or a database column you are trying to filter by date.

How to use it

Seconds or milliseconds?

Unix tools and most server languages, including PHP's time() and Python's time.time(), count seconds. JavaScript's Date.now() and Java's System.currentTimeMillis() count milliseconds, a number a thousand times larger. The tool guesses from the length of the number: up to 11 digits is read as seconds, 12 to 14 digits as milliseconds, and longer numbers as microseconds or nanoseconds. Today a seconds value has 10 digits and a milliseconds value has 13. The guess is wrong for millisecond values before March 1973, which have 11 digits or fewer; choose the unit by hand for those.

A worked example

Enter 1700000000. It is read as seconds and shows Tuesday 14 November 2023 at 22:13:20 UTC. In India, five and a half hours ahead, the same instant is already Wednesday 15 November at 03:43:20. That date change is why a report built on UTC can put an Indian evening sale on the wrong day. Enter 1700000000000 and you get the same instant, read as milliseconds.

The year 2038 problem

Many older systems store the timestamp as a signed 32 bit integer, whose largest value is 2,147,483,647. That is reached at 03:14:07 UTC on 19 January 2038, after which such a counter wraps around to a date in December 1901. Modern 64 bit systems are not affected, but embedded devices, old file formats and some databases still are. If a converted timestamp lies beyond that limit, the tool points it out.

Limits and privacy

Unix time ignores leap seconds, so every day is exactly 86,400 seconds, the same convention your computer uses. Very old dates are shown in the Gregorian calendar extended backwards, even before countries adopted it, so a historical date may not match the calendar people used at the time. Local time comes from your device's time zone setting. All conversions run in your browser, and Ur Next Door never sees the timestamps you enter.

Frequently Asked Questions

What is a Unix timestamp?
It is the number of seconds since midnight UTC on 1 January 1970, called the Unix epoch. It names the same instant in every time zone, which is why databases, logs and APIs use it.
How does the tool know if my number is in seconds or milliseconds?
It counts the digits. Up to 11 digits is read as seconds, 12 to 14 as milliseconds, and longer values as microseconds or nanoseconds. You can also choose the unit yourself, which you need for millisecond values before March 1973.
Why is the date different in IST and UTC?
India Standard Time is 5 hours 30 minutes ahead of UTC and has no daylight saving. An instant late in the evening UTC is already the next morning in India, so the calendar date can differ.
What is the year 2038 problem?
Systems that store the timestamp as a signed 32 bit number can only count up to 2,147,483,647 seconds, which is 03:14:07 UTC on 19 January 2038. After that the number overflows. The tool warns you when a value is beyond that limit.
Is anything sent to a server?
No. Every conversion runs in your browser using its own clock and time zone data. Ur Next Door does not receive the values you enter.