← Imperial Products / Tools / Unix Timestamp Converter

Unix Timestamp Converter

Convert epoch timestamps to human-readable dates and back. Supports seconds and milliseconds, ISO 8601, UTC, local time, and relative time. Runs entirely in your browser — nothing is sent to any server.

Current Unix Timestamp
—
— ms
Timestamp to Date
Date to Timestamp

What is a Unix Timestamp?

A Unix timestamp (also called an epoch timestamp) is the number of seconds that have elapsed since January 1, 1970, at 00:00:00 UTC — a fixed point in time known as the Unix epoch. It provides a single integer that unambiguously represents any moment in time, regardless of timezone or locale.

Seconds vs. Milliseconds

Traditional Unix timestamps count in seconds and are typically 10 digits long (e.g. 1700000000). Many modern systems — including JavaScript's Date.now(), Java, and various APIs — use milliseconds, producing a 13-digit value (e.g. 1700000000000). This converter handles both automatically.

ISO 8601 Format

ISO 8601 is an international standard for representing date and time. A UTC timestamp looks like 2023-11-14T22:13:20.000Z. The trailing Z indicates Coordinated Universal Time (UTC). This format is sortable, unambiguous, and widely supported across programming languages and databases.

Relative Time

Relative time ("3 hours ago", "in 2 days") makes timestamps immediately human-meaningful. This converter calculates the difference between the target timestamp and right now, expressed in the most appropriate unit — seconds, minutes, hours, days, months, or years.

Common Uses

More Free Developer Tools

Understanding Unix Timestamps and Date Formats

A Unix timestamp is a single integer counting seconds since January 1, 1970 00:00:00 UTC — the "Unix epoch." Because it has no timezone component, it is the most reliable way to store and transmit a moment in time. When you see a 10-digit number like 1700000000 in an API response, database column, or log file, that is a Unix timestamp in seconds. A 13-digit variant (e.g. 1700000000000) is milliseconds, the format used by JavaScript's Date.now(), Java, and many REST APIs.

Common Date Format Standards

ISO 8601 (2023-11-14T22:13:20Z) is the international standard — it is sortable, unambiguous, and universally accepted by databases and programming languages. The trailing Z means UTC. RFC 2822 (used in email headers) looks like Tue, 14 Nov 2023 22:13:20 +0000. Locale-specific formats like 11/14/2023 are ambiguous — the same string means different dates in the US versus Europe, so never store or transmit them across systems without explicit locale context.

Timezone Handling Tips

Always store timestamps in UTC and convert to local time only for display. When debugging timestamp issues across timezones, check whether the system offset is being applied at storage or retrieval — double-application of a UTC offset is a common bug. Daylight saving time (DST) transitions can silently shift a scheduled time by an hour; use UTC cron schedules and UTC database values to avoid this. The IANA timezone database (e.g. America/New_York) is more reliable than fixed offsets like UTC-5 because it accounts for DST automatically.