Unix Timestamp Converter
Convert a Unix timestamp (seconds, milliseconds, microseconds) to a date and back, shown in IST, UTC and other time zones.
How it works
A Unix timestamp counts the seconds since 1 January 1970 00:00:00 UTC (the "epoch"). Paste one and the tool works out whether it is in seconds, milliseconds, microseconds or nanoseconds from its length, then shows the date in India time (IST), UTC, your own zone and other cities.
Or type a date and time (2026-12-25 18:30:00) and choose whether you mean IST or UTC to get the timestamp. Leave both empty to see the current time.
The formula
seconds : 10 digits now (1700000000) milliseconds: 13 digits (1700000000000) microseconds: 16 digits nanoseconds : 19 digits IST = UTC + 5 hours 30 minutes (no daylight saving)
Worked example
1700000000 is 14 November 2023, 22:13:20 UTC, which is 15 November 2023, 03:43:20 IST.
The date 2026-12-25 18:30:00 read as IST is 2026-12-25 13:00:00 UTC, so the timestamp is 1798203600.
Good to know
- JavaScript, Java and many APIs use milliseconds. Python time.time(), PHP, Unix and most databases use seconds. If your date shows 1970, you probably mixed them up.
- On 19 January 2038 a signed 32 bit timestamp overflows (2147483647). Old systems may fail then.
- Timestamps have no time zone. Only the display does.
Common questions
- What is the epoch?
- 1 January 1970 00:00:00 UTC. Timestamp 0.
- How do I get the current timestamp?
- Leave the boxes empty and read Unix seconds. In JavaScript use Date.now(), in Python time.time().
- Why 10 digits and 13 digits?
- Seconds are 10 digits for dates from 2001 to 2286. Milliseconds are 1000 times bigger, so 13 digits.
- Does it handle dates before 1970?
- Yes. Negative timestamps are dates before 1970.
More in Developer.
See the ASCII code of every character in decimal, hex, binary and octal, or turn codes back into text.
OPEN →Axios Request GeneratorFill in a method, URL, headers and body and get a ready Axios Request snippet to copy.
OPEN →Base32 Encoder and DecoderEncode text to Base32 (RFC 4648) or decode it, as used in 2FA secrets.
OPEN →