Back to Tools & Utilities

Developer Utilities

Unix Timestamp
Converter

Convert Unix timestamps to UTC, ISO 8601, RFC 2822, local time, and relative time instantly. Convert dates back to epoch seconds or milliseconds. All conversions happen locally in your browser.

Current Unix Timestamp

0

Your Browser Timezone

Timestamp → Date

UTC

Invalid timestamp

Local Time

Invalid timestamp

ISO 8601

Invalid timestamp

RFC 2822

Invalid timestamp

Relative

Milliseconds

Invalid timestamp

Date → Timestamp

Quick Presets

Unix Timestamp (seconds)

Popular Reference Timestamps

Timestamp Difference Calculator

Developer Code Snippets

Get Current Timestamp
Math.floor(Date.now() / 1000)
Convert to Date
new Date(timestamp * 1000).toISOString()

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 — a moment in time known as the Unix Epoch. It is an integer, always increasing, and completely timezone-independent, which makes it the universal standard for timestamping events in software systems.

When a database stores a record's creation time, when an API returns a token expiry, when a log file records an error — they almost always use Unix timestamps under the hood. Knowing how to read and convert them is a fundamental skill for any developer.

Seconds vs Milliseconds

Two conventions exist. Unix timestamps in seconds are 10 digits long and used by most server-side systems (Python, PHP, Unix shell, databases). Timestamps in milliseconds are 13 digits long and are the default in JavaScript's Date.now() and most browser APIs. This converter auto-detects which format you've entered.

Common Timestamp Formats Explained

Unix Timestamp1717632000

Seconds since epoch. Platform-universal, no timezone, compact.

ISO 86012026-06-09T12:00:00.000Z

International standard. Used in JSON APIs, HTML datetime, and database VARCHAR columns.

RFC 2822Tue, 09 Jun 2026 12:00:00 +0000

Email and HTTP header standard. Used in Content-Date and email headers.

UTC StringTue, 09 Jun 2026 12:00:00 GMT

Human-readable UTC time. Good for logging and display.

Relative Time3 days ago

Human-friendly relative difference from now. Common in social UIs.

Frequently Asked Questions