convert

Unix Timestamp Converter

Convert Unix timestamps (seconds, ms, µs, ns) to dates and dates back to timestamps — one per line.

Runs on your deviceBatch readyPaste textNew

Paste or drop

Paste text below, or drop a file instead.

0 chars · 0 lines
…or drop a file
Drag and drop, or choose files
TXTLOG

Choose an output

Convert Unix timestamps (seconds, ms, µs, ns) to dates and dates back to timestamps — one per line.

About Unix Timestamp Converter

Enter Unix timestamps or date strings, one per line, and this tool converts each to ISO 8601, UTC, your local time, Unix seconds, Unix milliseconds and a relative time. It detects seconds, milliseconds, microseconds and nanoseconds automatically from the number of digits.

When it helps

  • Reading epoch values in application logs, database rows or API responses.
  • Converting a date like 2024-05-01T12:00:00Z into a timestamp for a query or cache key.
  • Checking a batch of timestamps from a log file in one pass.
  • Seeing how long ago or how far in the future an expiry time is.

Tips

  • Up to 11 digits is read as seconds, 12 to 13 as milliseconds, 14 to 16 as microseconds and 17 or more as nanoseconds. A current time in seconds has 10 digits, in milliseconds 13.
  • Type now to get the current time in every format.
  • Date strings without a time zone may be read as local time by the browser. Add Z or an offset such as +02:00 to be unambiguous.

Good to know

Quick answers about unix timestamp converter in your browser.

Count the digits. For present-day dates, seconds have 10 digits and milliseconds have 13. JavaScript's Date.now() returns milliseconds, while most Unix tools, PHP time() and JWT claims use seconds.

No. A Unix timestamp counts time since 1970-01-01 00:00:00 UTC, so it is the same everywhere. Only its display in local time depends on your time zone.

Yes. There is no sign-up, no watermark and no limit on how many files you process.

No. Files are read and processed locally in your browser, so they never leave your device.

Related tools