English

Unix Timestamp Converter (Epoch Converter)

Convert epoch time to dates and dates to Unix time. Free, private and runs in your browser.

Advertisement

About the Unix Timestamp Converter

Convert between Unix time and human-readable dates. Paste a timestamp in seconds, milliseconds or microseconds – the unit is detected automatically – to see the date in your local time zone, UTC and ISO 8601, plus how long ago or how far in the future it is. Or pick a date and time to get its Unix timestamp. The current epoch time updates live at the top.

Like every tool on this site, it runs entirely in your web browser using JavaScript. Your files and text are never uploaded to a server, which makes it fast, free and private.

How to use the Unix Timestamp Converter

  1. See the current Unix timestamp at the top and copy it if needed.
  2. Paste a timestamp into 'Timestamp to date' to see the date.
  3. Pick a date and time in 'Date to timestamp' to get seconds and milliseconds.
  4. Tick 'Treat as UTC' if your date is in UTC rather than your local time.

What is a Unix timestamp?

Unix time (also called epoch time or POSIX time) counts the seconds since 1 January 1970 00:00:00 UTC, ignoring leap seconds. It is used in databases, APIs, log files and programming languages because it is a single number that doesn't depend on time zones. JavaScript and Java often use milliseconds instead of seconds.

Seconds, milliseconds or microseconds?

A current timestamp in seconds has 10 digits (e.g. 1700000000), in milliseconds 13 digits and in microseconds 16 digits. The converter uses the size of the number to detect the unit. The 32-bit limit, known as the Year 2038 problem, is 2147483647 seconds (19 January 2038).

Frequently asked questions

How do I get the current timestamp in code?

JavaScript: Math.floor(Date.now()/1000). Python: int(time.time()). PHP: time(). MySQL: UNIX_TIMESTAMP(). Linux shell: date +%s.

Does Unix time depend on the time zone?

No. A timestamp is the same everywhere in the world; only its display as a local date changes with the time zone.

Can I convert dates before 1970?

Yes. Dates before 1970 have negative timestamps, which the converter supports.

What is ISO 8601?

An international date format like 2026-01-31T14:05:00.000Z, where Z means UTC. It is widely used in APIs and JSON.

Related tools

Advertisement