Skip to main content

Epoch to Date Converter (Database & Microseconds)

Convert Epoch seconds and milliseconds to readable date formats online. Free, instant, and accurate epoch time converter for developers.

Enter a Unix timestamp

Choose the unit when automatic detection would be ambiguous.

Local date and time

Enter a value above to see the result.

ISO 8601

Enter a value above to see the result.

Current Unix time:

Was this Epoch to Date Converter (Database & Microseconds) helpful?

Help us keep tools reliable, fast, and bug-free.

What you can do with Unix Timestamp Converter

  • Convert epoch to date
  • Turn date into unix timestamp

How this date and time calculation works

Translate database and API epoch values across seconds (10-digit), milliseconds (13-digit), and microseconds (16-digit) into calendar dates.

Example input

1704067200

Example output

2024-01-01T00:00:00.000Z (ISO 8601)

Practical workflow

  1. Paste the epoch value into Timestamp to Date and select Seconds or Milliseconds.
  2. Choose ISO 8601 for an exact UTC instant, UTC text for a readable UTC date, or Local time for your browser time zone.
  3. Copy the result, or choose Use result as input to switch to Date to Timestamp.

Common use cases

  • Inspect Redis, MongoDB, or SQL epoch timestamp columns.
  • Debug event timelines in distributed tracing and telemetry systems.
  • Translate microservice payload timestamps into readable dates.

Important notes and limitations

  • Epoch time starts at 1970-01-01T00:00:00Z.
  • Negative epoch values correspond to dates before January 1, 1970.
  • For negative or near-epoch millisecond values, select Milliseconds explicitly instead of relying on automatic detection.

Terminal & CLI equivalents

PostgreSQL epoch to timestamp query

SELECT to_timestamp(1700000000);

Translates 10-digit Unix seconds into TIMESTAMP WITH TIME ZONE.

MongoDB ObjectId timestamp extraction

ObjectId("6554fa800000000000000000").getTimestamp()

Extracts embedded 4-byte Unix epoch timestamp from BSON ObjectID.

Kafka / Redis millisecond normalization

SELECT TO_TIMESTAMP(record_time / 1000) FROM events_stream;

Scales 13-digit millisecond timestamps down to seconds for SQL date functions.

Database & Message Broker Epoch Timestamp Precision

Platform / EngineDefault Epoch UnitDigit LengthStorage Type
PostgreSQL to_timestamp()Seconds (Double precision)10 digitsTIMESTAMP WITH TIME ZONE
MongoDB BSON DateMilliseconds13 digits64-bit integer
Apache Kafka Log RecordsMilliseconds (CreateTime)13 digitsint64
OpenTelemetry / InfluxDBNanoseconds19 digitsuint64

Common errors & troubleshooting

Date renders as year 55800+ or distant future

Cause: Timestamp was in milliseconds (13 digits) or microseconds (16 digits) but evaluated as seconds.

Solution: Strip trailing 3 digits for milliseconds or 6 digits for microseconds before converting.

Continue your workflow

Frequently asked questions

How do I convert a date back to an epoch timestamp?

Select Date to Timestamp and enter an ISO date string, preferably with an explicit time-zone offset. The two result cards show Unix seconds and Unix milliseconds.

Does Epoch conversion require an internet connection?

No. The calculation is executed 100% locally in your web browser using JavaScript date math.

Can I convert dates before 1970?

Yes. Negative epoch values represent earlier dates. Select the unit explicitly so a small millisecond value is not interpreted as seconds.

Focused guides for this tool