Skip to content

Free tool

Unix timestamp converter

Convert Unix (epoch) timestamps in seconds, milliseconds, microseconds or nanoseconds to dates in UTC and your time zone, and dates back to timestamps.

Timestamp or date

Current Unix time: (click to use)

Converted

…

What a Unix timestamp is

A Unix timestamp counts seconds since 1 January 1970 00:00:00 UTC (the epoch), ignoring leap seconds. It has no time zone, which makes it ideal for storing and comparing times across systems. JavaScript and many APIs use milliseconds instead of seconds, and tracing systems often use microseconds or nanoseconds; this converter detects the unit from the number of digits.

Seconds or milliseconds?

  • 10 digits (for example 1700000000): seconds.
  • 13 digits (1700000000000): milliseconds, as in Date.now().
  • 16 digits: microseconds; 19 digits: nanoseconds (OpenTelemetry spans use nanoseconds).

Mixing them up is a classic bug: a seconds value read as milliseconds lands in January 1970, and milliseconds read as seconds land tens of thousands of years in the future.

Time zones and logs

Store and log times in UTC, and convert to local time only for display. When comparing logs from several servers, check they all use UTC and that their clocks are synchronised with NTP; clock drift makes events appear in the wrong order. For scheduled jobs, the cron expression explainer shows run times in UTC and your zone.

Using it safely at work

Online developer tools are a common way secrets leak: people paste production tokens, customer records or private keys into a website that quietly logs them. This page does all its work in your browser with standard Web APIs, makes no network request with your input, and stores nothing, so it is safe to use with real data, and you can confirm that in your browser’s network panel. Even so, treat anything you paste as you would treat a screenshot: rotate a token that was exposed, never share links that contain it, and prefer command-line tools on the server itself for very sensitive material.

Frequently asked questions

Is my data sent to a server?

No. This tool runs entirely in your browser; nothing you paste is uploaded or stored.

What is the current Unix time?

It is shown live under the input; click it to convert.

What is the year 2038 problem?

Signed 32-bit seconds overflow on 19 January 2038; use 64-bit integers.

Does Unix time include time zones?

No, it is always UTC-based.

More free tools

All tools