Skip to content
SoftwareSolutions.net
Calculators & Converters

Epoch converter

Convert between Unix epoch seconds and a readable UTC date.

Try it

Ready

Inputs

Result

The result appears here as you type.

About Epoch converter

An epoch converter translates between Unix time, the number of seconds since 1 January 1970 at midnight UTC, and a readable date and time. Enter a number such as 1700000000 and the tool shows the date it stands for. Enter a date and it shows the epoch value. Developers meet epoch timestamps in logs, databases, APIs and file metadata, and the converter makes them readable.

Some systems count milliseconds rather than seconds, so the same date may appear as a number a thousand times larger. The converter detects which one you entered, treating values with eleven or more digits as milliseconds, so the result is correct in both cases.

How to use Epoch converter

  1. Enter an epoch number, such as 1700000000, or a date in YYYY-MM-DD format.
  2. Read the UTC date and time for a number, or the epoch seconds and milliseconds for a date.
  3. Check which unit the tool used, seconds or milliseconds.
  4. Convert the time to your local zone if needed, since the output is in UTC.

Seconds and milliseconds

Unix time in seconds is the standard in most Unix tools and databases. JavaScript and many web services use milliseconds, which is why a timestamp from a browser looks about a thousand times larger than one from a shell command.

A timestamp with eleven digits, such as 17000000000, is in milliseconds, because it corresponds to a date far in the future if read as seconds. The converter follows that rule, so a value near 1.7 billion reads as seconds.

Time zones and leap seconds

Unix time ignores leap seconds and always counts a day as 86,400 seconds. The output is in UTC, so compare it with your local time zone before using it in a report or a calendar.

Negative values work for dates before 1970. The converter handles them, though some older systems cannot store negative timestamps, so check the software you are using.

Logs often record times in epoch seconds, and reading them alongside other events requires converting to a readable date. Keep the time zone in mind, since most logs use UTC while the support team may work in local time. A consistent zone prevents confusion when matching events.

Some databases store the epoch value as an integer and others as a text string. When you copy a value from a database export, check for stray spaces or separators before converting, because they can prevent the tool from reading it.

Database administrators sometimes convert timestamps in a query, using functions built into the database. Test the conversion on a known value, such as the epoch value for a date you recognise, before applying it across a large table.

Programming languages handle epoch time differently. Some default to local time, some to UTC, and some store dates with fractional seconds. Check the documentation of the language you use before comparing values across systems.

Frequently asked questions

Why does the output say UTC?

Epoch time is defined in UTC, so the converter shows that zone to avoid confusion with your local time.

What is the year 2038 problem?

Systems that store Unix time as a signed 32-bit integer overflow in January 2038. Modern systems use 64-bit values to avoid it.

Why does a date give a number ending in 000?

The date is taken at midnight UTC, so its seconds count is a whole number of days, and the millisecond value ends in 000.

Related tools

Tools that pair well with this one.