DevCalcHub

Unix Timestamp Converter (Epoch Converter)

Use this epoch converter to turn a Unix timestamp into a human-readable date, or a date into a Unix timestamp. Results are shown in UTC and ISO 8601 format.

By DevCalcHub Editorial Team · Last updated:

How it works

A Unix timestamp counts the number of seconds that have elapsed since the Unix epoch (00:00:00 UTC on January 1, 1970), ignoring leap seconds.

Example

Converting a Unix timestamp to a readable date:

Input: 1700000000
Output: 2023-11-14T22:13:20.000Z

How to use the Unix timestamp converter

  • Choose Unix → Date to convert a timestamp in seconds into a date.
  • Choose Date → Unix to convert a date (ISO 8601 works best, for example 2026-01-15T09:30:00Z) into a timestamp.
  • Copy the UTC date, ISO string or timestamp you need.

Seconds or milliseconds?

A Unix timestamp in seconds currently has 10 digits (for example 1700000000). JavaScript's Date.now() and many APIs return milliseconds, which have 13 digits (1700000000000). This converter expects seconds — divide a millisecond timestamp by 1000 first, or you will get a date thousands of years in the future.

Converting UTC to Indian Standard Time

Unix timestamps have no time zone; this tool shows the result in UTC. Indian Standard Time (IST) is UTC + 5 hours 30 minutes. For example, 1700000000 is 14 November 2023, 22:13:20 UTC, which is 15 November 2023, 03:43:20 IST.

Get the current Unix timestamp in code

LanguageCode (seconds)
JavaScriptMath.floor(Date.now() / 1000)
Pythonint(time.time())
PHPtime()
JavaInstant.now().getEpochSecond()
Gotime.Now().Unix()
MySQLSELECT UNIX_TIMESTAMP();
Bashdate +%s

The year 2038 problem

Systems that store Unix time in a signed 32-bit integer will overflow at 03:14:07 UTC on 19 January 2038, wrapping around to a date in 1901. Modern systems use 64-bit timestamps, which won't overflow for billions of years. Need unique IDs as well? Use the UUID Generator.

Frequently asked questions

Why do timestamps show in UTC rather than my local time?

Unix timestamps are timezone-independent, so showing the result in UTC avoids ambiguity. Convert to your local timezone separately if needed.

What date formats are accepted for Date → Unix timestamp conversion?

Standard ISO 8601 format (e.g. 2026-01-15T09:30:00Z) works most reliably. Other common date formats may also parse correctly depending on your browser.

What is a Unix timestamp (epoch time)?

It is the number of seconds that have passed since 00:00:00 UTC on 1 January 1970, called the Unix epoch, not counting leap seconds. It is a simple, time-zone-independent way to store a moment in time.

How do I convert a millisecond timestamp?

Divide it by 1000 to get seconds, then convert. 1700000000000 ms is 1700000000 seconds.

Can a Unix timestamp be negative?

Yes. Negative timestamps represent dates before 1 January 1970. For example, −86400 is 31 December 1969.

Related tools

Input

Used when converting Unix timestamp → Date.

Used when converting Date → Unix timestamp. Accepts ISO 8601 format.

Unix Timestamp (seconds)

1700000000

ISO 8601

2023-11-14T22:13:20.000Z

Human-readable (UTC)

Tue, 14 Nov 2023 22:13:20 GMT