Epoch / Unix Time Converter

Convert Unix timestamps to human-readable UTC and local time and back, handling seconds, milliseconds, microseconds and nanoseconds.

Converter Syslog & Logs Runs in your browser
Unix timestamp (any precision), an ISO 8601 date, or "now".
Try:

Result

UTC
2026-07-26 22:00:00 UTC
Local time
7/26/2026, 10:00:00 PM UTC
Unix seconds
1785103200
Unix milliseconds
1785103200000
Interpreted input as
seconds
Relative
1.2 day from now

Other formats

ISO 8601
2026-07-26T22:00:00.000Z
RFC 2822
Sun, 26 Jul 2026 22:00:00 GMT
Day of week
Sunday
Day of year
207
ISO week
2026-W30
Microseconds
1785103200000000
Timezones
Everything here is computed locally in your browser, and local time uses your machine timezone. Log correlation should always be done in UTC.

About Epoch / Unix Time Converter

Unix time is seconds since 1 January 1970 UTC. Every log pipeline, database and API uses it, in four different precisions, usually without saying which. This detects the precision from the magnitude and converts in both directions.

Correlating logs across systems

Timestamps only correlate if every device agrees on the time and records the offset. Store and compare in UTC, keep NTP healthy on everything that logs, and prefer RFC 3339 output (2026-07-24T22:15:03.123Z) over the legacy BSD syslog format, which has neither a year nor a timezone. When an incident spans a daylight-saving boundary, local timestamps produce either a missing hour or a duplicated one — both of which reorder events in a way that misleads the reader.

Telling the precisions apart

A 10-digit value is seconds, 13 digits is milliseconds, 16 is microseconds and 19 is nanoseconds. Java, JavaScript and Kafka use milliseconds; C, Python, Go and most Unix tooling use seconds; eBPF and tracing tools use nanoseconds. Mixing them up produces timestamps in 1970 or in the year 54,000 - both are immediately recognisable once you know the pattern.

Common use cases

  • Reading a timestamp out of a raw log or database row.
  • Correlating events across systems that report time differently.
  • Setting an absolute expiry value in a token or scheduled job.

Edge cases and gotchas

  • Leap seconds are not represented in Unix time; do not use it to measure precise intervals across one.
  • Always store and compare in UTC. Local time in logs turns every daylight-saving change into an outage postmortem.

Frequently asked questions

Why does my database timestamp differ by hours?
Almost always a session timezone difference rather than bad data. Store as UTC or with an explicit offset (timestamptz), and convert only for display.
Why does my timestamp show as 1970?
A millisecond value was interpreted as seconds, or the field was empty and became zero. Check the digit count.