Unix Timestamp Converter · Tutorial

How to read Unix timestamps in log files

4 min readbeginnerUpdated

Logs, databases and APIs often record times as long numbers like 1793350800123. This tutorial shows how to turn them into a date you can read, check which unit they use, and see the same moment in your own time zone.

What you need

Steps

  1. Copy the number

    Copy just the digits from your log line. The sample is a 13-digit value, typical of JavaScript and Java.

    1793350800123
  2. Paste it and check the unit

    Paste it into Unix timestamp. Thirteen digits are read as milliseconds, so the tool shows 30 October 2026, 09:00:00.123 UTC. The unit it used is shown next to the result.

  3. Read it in your time zone

    The local time row uses your browser's time zone, with daylight saving applied. The relative time tells you how long ago or how far ahead it is, which helps when you're matching log entries to an incident.

  4. Copy the format you need

    Copy the ISO 8601 form for tickets and code, or the RFC 2822 form for emails. Both describe the same instant.

Try it yourself

Opens the Unix Timestamp Converter with this tutorial's sample loaded.

Try it now

Common mistakes

Getting a date in 1970
If the date lands in January 1970, the number is much smaller than expected. It may be in seconds when you selected milliseconds, or it may be a duration rather than a timestamp.
Getting a date thousands of years ahead
This happens when a millisecond value is treated as seconds. Leave the unit on Auto or pick milliseconds.
Comparing logs from different servers
Timestamps are already in UTC, so compare the numbers or the UTC column, not each server's local time.

Next steps

Go back to the Unix Timestamp Converter, or keep going with one of these:

FAQ

Why does my log show a decimal like 1793350800.123?

Some tools write seconds with a fractional part. Remove the decimal point to get milliseconds, or keep the whole-seconds part.