🕐 Unix Timestamp Converter

Unix Timestamp Converter

Convert between Unix timestamps and human-readable dates. Supports seconds, milliseconds, ISO 8601, and multiple timezones.

Current Unix Timestamp

Timestamp → Date

Date → Timestamp

Share this tool:

How to Use

  1. The live display at the top shows the current Unix timestamp updated every second.
  2. To convert a timestamp to a date: enter a Unix timestamp (seconds or milliseconds) in the left panel and click Convert.
  3. To convert a date to a timestamp: pick a date/time in the right panel and click Convert.
  4. Select your timezone in either panel for timezone-aware conversion.

Features

Use Cases

FAQ

What is a Unix timestamp?

A Unix timestamp is the number of seconds elapsed since January 1, 1970, 00:00:00 UTC (the Unix epoch). It is language- and timezone-independent, making it ideal for storing time in databases and APIs.

Seconds vs milliseconds — how do I tell them apart?

Timestamps in seconds are typically 10 digits (e.g. 1704067200). Millisecond timestamps are 13 digits (e.g. 1704067200000). This tool auto-detects by checking if the value is greater than 1e10.

How do I get the current timestamp in code?

JavaScript: Math.floor(Date.now()/1000)
Python: import time; int(time.time())
PHP: time()
SQL: UNIX_TIMESTAMP() (MySQL) / strftime('%s','now') (SQLite)

What is the Year 2038 problem?

32-bit systems store Unix timestamps as signed integers, which overflow on January 19, 2038 at 03:14:07 UTC. Modern 64-bit systems and languages (including JavaScript) are not affected.

More Free Tools

Sister site: GenFactories – Fun Generators