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
1704067200Example output
2024-01-01T00:00:00.000Z (ISO 8601)Practical workflow
- Paste the epoch value into Timestamp to Date and select Seconds or Milliseconds.
- Choose ISO 8601 for an exact UTC instant, UTC text for a readable UTC date, or Local time for your browser time zone.
- 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 / Engine | Default Epoch Unit | Digit Length | Storage Type |
|---|---|---|---|
| PostgreSQL to_timestamp() | Seconds (Double precision) | 10 digits | TIMESTAMP WITH TIME ZONE |
| MongoDB BSON Date | Milliseconds | 13 digits | 64-bit integer |
| Apache Kafka Log Records | Milliseconds (CreateTime) | 13 digits | int64 |
| OpenTelemetry / InfluxDB | Nanoseconds | 19 digits | uint64 |
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
- Unix Timestamp to Date — full Unix timestamp tool.
- Time Unit Converter — convert between seconds, minutes, hours, and days.
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
- Unix Timestamp to Date Converter (POSIX / Linux Time) — Translate POSIX Unix epoch timestamps into human-readable UTC, ISO 8601, and local dates with CLI terminal date references.
- Timestamp to Date Converter (ISO 8601 & Local Timezone) — Inspect numeric and ISO timestamps, evaluate UTC vs local browser timezones, and format dates for web applications.