Timestamp Converter

Convert a Unix timestamp to a readable date, or a date to its Unix timestamp.

timestamp-converter.js
Enter a timestamp above.

Pick a date above.

Unix timestamps count seconds since 1 January 1970 (UTC) and are used throughout programming, databases and APIs. This tool converts a timestamp into a readable local date and time, or takes a date you pick and shows its Unix timestamp in both seconds and milliseconds — useful for debugging logs, APIs, or database records.

How to use it

  1. To convert a timestamp: paste it into the timestamp field.
  2. The equivalent readable date and time appears automatically.
  3. To go the other way: pick a date and time in the date field.
  4. The Unix timestamp (seconds and milliseconds) appears automatically.

Frequently asked questions

Does this use seconds or milliseconds?

The tool accepts and displays both — enter a 10-digit number for seconds or a 13-digit number for milliseconds, and it detects which one automatically.

What timezone is used for the readable date?

The readable date shown reflects your browser's local timezone; the underlying timestamp itself is always UTC-based.

Can I get the current timestamp right now?

Yes, click 'Use current time' to fill in right now's date and see its timestamp instantly.