Epoch Timestamp Converter

Convert Unix timestamps, the seconds-since-1970 numbers used in logs, databases and APIs, into readable dates, and dates back into timestamps. Paste a 10-digit seconds value or a 13-digit milliseconds value and see the date in India Standard Time and UTC. Or pick a date and time, say which time zone it is in, and get the timestamp.

Calculator

Loading tool…

At a glance

Timestamp input
Up to 16 digits; values of 100 billion or more are read as milliseconds
Timestamp output
IST date and time, and UTC ISO 8601
Date input
Date and time in IST, UTC or this device’s time zone
Date output
Timestamp in seconds and milliseconds

How it works

  1. Paste a timestamp

    Seconds and milliseconds are detected automatically from the size of the number.

  2. Read the dates

    The date appears in IST and as an ISO date in UTC.

  3. Go the other way

    Choose a date, time and zone to get the timestamp in seconds and milliseconds.

Which time tool fits?

Timestamps and calendar dates answer different questions.

OptionBest forTrade-off
Epoch Timestamp Converter (this page)Reading and creating Unix timestamps.One value at a time.
Date Difference CalculatorDays between two calendar dates.No timestamps or times of day.
JSON FormatterReading API responses that contain timestamps.Does not convert them.
UUID GeneratorUnique IDs for records.Not time-based.
A spreadsheetConverting thousands of timestamps at once.Needs formulas.

Example: reading 1700000000

A log line shows the timestamp 1700000000 and you need the IST time.

  1. Paste 1700000000. It has 10 digits, so it is read as seconds.
  2. The IST time is Wednesday, 15 November 2023 at 3:43:20 am, and the UTC time is 2023-11-14T22:13:20Z.
  3. To go the other way, choose 15 November 2026 at 09:30 in India (IST): the timestamp is 1794715200 seconds.

When to use Epoch Timestamp Converter

Use it while debugging, reading logs, writing database queries or checking when a token or link expires. Support teams can translate a timestamp from a log into a local IST time for a customer.

What a Unix timestamp is

It counts seconds since 00:00:00 UTC on 1 January 1970, ignoring leap seconds. Because it has no time zone, the same timestamp is the same instant everywhere; only the displayed clock time changes between zones.

Seconds or milliseconds

Unix tools and many databases use seconds; JavaScript and Java often use milliseconds. A 13-digit value is almost always milliseconds. The converter decides by size, and tells you which unit it used.

Converting dates back

A date and time on its own is ambiguous until you say which zone it is in. 09:30 in India is 04:00 in UTC, so choosing the zone avoids an error of five and a half hours.

Timestamps in spreadsheets

Spreadsheets store dates as day counts, not Unix timestamps. To convert a column of timestamps, use this page to check a few values by hand, then apply the matching formula in your spreadsheet so you can confirm it gives the same dates.

Year 2038 and 64-bit timestamps

Older systems stored Unix time in a signed 32-bit number, which runs out on 19 January 2038. Modern systems and JavaScript use 64-bit values, so the limit does not apply here, but it is worth checking when you work with old databases or embedded devices.

Milliseconds in JavaScript

JavaScript’s Date.now() returns milliseconds since 1970, so values from browser logs and many APIs have 13 digits. Unix command-line tools and many databases use seconds. Mixing the two is a common bug that puts dates in 1970 or far in the future.

If something looks wrong

The year is around 1970
You probably entered milliseconds divided by 1000 twice, or a seconds value that is too short. Check the number of digits.
The date is far in the future
A milliseconds value may have been read as seconds if it has fewer than 12 digits. Check where the value came from.
The time is 5 hours 30 minutes off
Compare with the right zone: IST is UTC+5:30. Logs are often in UTC.
An error asks for a timestamp
Remove spaces, commas or decimal points; only digits and an optional minus sign are accepted.

Common questions

Does it account for daylight saving?

India has no daylight saving. For “this device’s time zone”, your browser applies its own rules.

Can I convert many timestamps at once?

No, one value at a time.

Is the timestamp sent anywhere?

No. Conversion happens in your browser.

How do I know if a timestamp is in seconds or milliseconds?

Current timestamps in seconds have 10 digits; in milliseconds they have 13. The converter treats numbers of 100 billion or more as milliseconds.

What time zone is the result in?

Both IST (Asia/Kolkata, UTC+5:30) and UTC are shown, so you can match either.

Does it handle negative timestamps?

Yes. Negative values are dates before 1 January 1970.

Timestamps from your logs are converted locally, so internal data in them stays on your machine.