Timestamp Converter

Convert between Unix timestamps and local datetime. Auto-detect seconds vs milliseconds.

Converter

Timestamp → Date

10 digits are usually seconds; 13 digits are usually milliseconds.

Local
ISO 8601
UTC
Unit

Date → Timestamp

Seconds (10)
Milliseconds (13)

What is a timestamp?

A Unix timestamp is the number of seconds (or sometimes milliseconds) since 1970-01-01. It's commonly used in logs and APIs. This tool runs locally in your browser.

How to use

  • Paste a number on the left to get a date instantly;
  • 10 digits are usually seconds, 13 digits are usually milliseconds;
  • Enter a datetime on the right to get the corresponding timestamp.

FAQ

Seconds vs milliseconds?

10 digits are usually seconds; 13 digits are usually milliseconds. If the value is longer than 10 digits, we treat it as ms.

Do you upload my data?

No. Everything is computed locally.