Unix Timestamp Converter

Convert Unix timestamps to human-readable dates and back. Shows the current timestamp live, updated every second. Supports UTC and local timezone.

Current Unix timestamp

Timestamp → Date

Human-readable date

Date → Timestamp

Unix timestamp

How to use

  1. The current Unix timestamp updates live every second at the top.
  2. Paste a timestamp in the first field to convert it to a human-readable date.
  3. Use the date/time picker to convert a date back to a Unix timestamp.

Frequently asked questions

What is a Unix timestamp?

A Unix timestamp is the number of seconds that have elapsed since January 1, 1970, at 00:00:00 UTC (the Unix epoch). It's a standard way to represent points in time across programming languages and systems.

How do I get the current Unix timestamp in JavaScript?

Use Math.floor(Date.now() / 1000) in JavaScript. Date.now() returns milliseconds since epoch, so dividing by 1000 and flooring gives you seconds.

What is the difference between a Unix timestamp in seconds and milliseconds?

Unix timestamps are traditionally in seconds. JavaScript's Date.now() and many APIs return milliseconds. A 10-digit number is seconds; a 13-digit number is milliseconds. This converter handles both automatically.

What is the maximum Unix timestamp?

The maximum 32-bit Unix timestamp is 2,147,483,647, which corresponds to January 19, 2038, at 03:14:07 UTC — known as the Year 2038 problem. 64-bit systems extend this to far into the future.