UltraConvert
Converters

Unix Timestamp Converter

Convert between Unix epoch timestamps and human-readable dates instantly. Auto-detects whether your input is in seconds or milliseconds based on magnitude. Outputs multiple formats including Unix seconds, Unix milliseconds, ISO 8601 (UTC and local), human-readable strings, and relative time calculations. The "Use current time" shortcut lets you work with the present moment.

What does this tool do?

The Timestamp Converter translates between machine-readable Unix timestamps and human date formats. Unix timestamps count seconds (or milliseconds) since January 1, 1970 00:00:00 UTC (the Unix epoch). The tool auto-detects seconds vs milliseconds: numbers below 10^11 are treated as seconds (dates before year 5138), above as milliseconds. It outputs comprehensive format options: Unix seconds, Unix milliseconds, ISO 8601 UTC timestamp, ISO 8601 local time, human-readable date string, and relative time from now.

How it works

Input is parsed to detect format: numeric values are analyzed for magnitude to determine seconds vs milliseconds; string values are parsed as date inputs. JavaScript's Date object handles conversion: new Date(timestamp * 1000) for seconds, new Date(timestamp) for milliseconds. Output formatting uses toISOString() for ISO 8601, toLocaleString() for local time, and custom formatting for human-readable strings. Relative time calculates the difference between the timestamp and now using Date.now(), displaying appropriate units (seconds ago, minutes ago, hours ago, days ago).

Features

How to use

  1. 1

    Enter timestamp or date

    Paste any of: 1234567890 (seconds), 1234567890000 (milliseconds), 2026-04-26T20:00:00Z (ISO), or "April 26 2026 8pm" (natural language).

  2. 2

    Read all conversions

    All formats are displayed: Unix timestamps, ISO strings in UTC and your local timezone, readable format, and relative time from now.

  3. 3

    Use current time shortcut

    Click "Use Current Time" to populate with now. Useful for logging current timestamps or calculating future/past relative times.

  4. 4

    Copy needed format

    Click copy on whichever format you need for your code, API, database, or documentation.

Common use cases

API debugging

Convert Unix timestamps in API responses to human dates to understand data recency, expiration times, or event sequencing.

Database work

Translate database timestamps (often stored as Unix integers) to readable dates for queries, reports, and data verification.

Log analysis

Convert millisecond timestamps in log files to human-readable times for incident analysis and event correlation.

Code development

Generate timestamps for test data, verify your code's date handling produces correct values, and debug timezone issues.

Tips & best practices

Frequently asked questions

How does auto-detection work?
Numbers below ~10^11 are treated as seconds (corresponds to year 5138). Above that, as milliseconds. The threshold is unambiguous in practice — real dates in milliseconds are always above 10^11 (since 1970+).
What about timezones?
Unix timestamps are always UTC. The tool shows both UTC and your browser's local timezone. For other timezones, you'd need a tool with explicit timezone selection (planned for future).
What's the maximum date?
JavaScript's Date supports up to ±100,000,000 days from the epoch (year ±271821). The tool displays these as out-of-range if exceeded.
Why are my timestamps 8 hours off?
Timezone confusion is common. Unix timestamps are UTC. If you're interpreting seconds as milliseconds or vice versa, the difference is ~50 years, not hours. Check that first. For hour-level differences, verify timezone settings.

Related tools