Epoch Converter

Convert Unix epoch seconds to calendar dates and back. Simple epoch converter for logs, databases, and APIs-free, fast, and private in your browser.

How to Use

  1. To decode: enter epoch seconds in the first field.
  2. Click Epoch -> Date to view the corresponding date-time.
  3. To encode: set the date-time picker to your target instant.
  4. Click Date -> Epoch to generate Unix seconds.
  5. Copy the value into SQL, config files, or chat.

Input Field Guide

Epoch seconds
Whole seconds since 1970-01-01 00:00:00 UTC. Typical ten-digit log values.
Date
Local date-time interpreted by your browser for reverse conversion to seconds.

Understanding Your Results

Epoch -> Date shows the local wall-clock interpretation of the UTC instant. Date -> Epoch prints integer seconds suitable for second-precision databases and APIs. Results are labeled by direction so you do not paste a date where seconds belong.

Features

Formula & Calculation Logic

seconds = floor((Date.UTC components) / 1000); date = new Date(seconds * 1000) displayed in local timezone.

Real-World Use Cases

Practical Examples

Decode

1700000000 -> local datetime equivalent of that UTC instant.

Encode

Pick 1 Jul 2026 noon local -> integer seconds for that instant.

Benefits

Tips & Best Practices

Common Mistakes to Avoid

Frequently Asked Questions

What is Unix epoch time?

Second count since 1 Jan 1970 00:00:00 UTC in common software systems.

Does epoch converter support milliseconds?

No. Use unix-timestamp-converter for millisecond values.

Which timezone is used displaying dates?

Your browser local zone interprets the instant for display.

Can I convert dates before 1970?

Yes within the range supported by JavaScript Date.

How is this different from unix-timestamp-converter?

Epoch converter is seconds-only with a simpler two-field layout.

Is output always an integer?

Yes. Epoch seconds are whole numbers.

Does it modify my system clock?

No. It only converts values you enter.

Are epoch values uploaded?

No. Conversion runs locally.

Related Date & Time Calculators