100% CLIENT-SIDE · NO DATA SENT

Unix Timestamp Converter

Convert epoch timestamps to human dates and back. Live clock, relative time, multiple formats. Runs entirely in your browser.

Timestamp → Date

UTC
Local Time
Relative
ISO 8601

Date → Timestamp

Unix Timestamp (seconds)
Unix Timestamp (milliseconds)
ISO 8601
RFC 2822

Quick Timestamps

What is a Unix Timestamp?

A Unix timestamp (also called epoch time or POSIX time) is the number of seconds that have elapsed since January 1, 1970, 00:00:00 UTC — known as the Unix epoch. It's the standard way computers track time internally.

Seconds vs Milliseconds

Most Unix timestamps are in seconds (10 digits, e.g., 1712019960). JavaScript, Java, and some APIs use milliseconds (13 digits, e.g., 1712019960000). This tool auto-detects which format you're using.

Get Current Timestamp in Code

JavaScript: Math.floor(Date.now() / 1000)

Python: import time; int(time.time())

PHP: time()

Go: time.Now().Unix()

SQL (PostgreSQL): EXTRACT(EPOCH FROM NOW())

Bash: date +%s

Year 2038 Problem

32-bit systems store timestamps as a signed 32-bit integer, which will overflow on January 19, 2038 at 03:14:07 UTC. Most modern systems use 64-bit timestamps, which won't overflow for another 292 billion years.

Common Timestamp Formats

Building APIs? Generate professional docs instantly.

AI-powered README generator for your GitHub projects — all languages supported.

Generate README Free →

More Free Developer Tools

Frequently Asked Questions

How do I convert a Unix timestamp to a readable date?

Paste your Unix timestamp into the input field and the tool instantly converts it to a human-readable date and time. It shows results in both UTC and your local timezone and supports both 10-digit (seconds) and 13-digit (milliseconds) timestamps.

What is a Unix timestamp?

A Unix timestamp counts the seconds (or milliseconds) since January 1, 1970 00:00:00 UTC — called the Unix Epoch. It's a universal, timezone-free way to store time used across databases, APIs, and programming languages.

How do I convert a date to a Unix timestamp?

Use the date input field to pick any date and time. The tool instantly converts it to a Unix timestamp in both seconds and milliseconds, ready to copy for API calls or database queries.

What is the current Unix timestamp?

The tool shows the current Unix timestamp in real time, updating every second. Copy it directly for use in code, logs, or API requests.

Why do some timestamps have 13 digits?

10-digit timestamps represent seconds since epoch. 13-digit timestamps represent milliseconds. JavaScript's Date.now() uses milliseconds by default, while most Unix systems use second precision.