Skip to main content

Free Timestamp Converter

Convert Unix timestamps to readable dates and vice versa. Supports UTC and local time, seconds and milliseconds.

Works offline once loaded
Now:
Unit:
Epoch quick reference

Common uses

  • Convert Timestamps in Analytics DataTranslate Unix timestamps from analytics exports (Google Analytics, Mixpanel, Amplitude) into readable dates.
  • Convert Timestamps for DebuggingDecode Unix timestamps from server logs, error payloads, and API responses into readable dates.
  • Convert Timestamps in API DevelopmentValidate, compare, and translate Unix timestamps returned by REST APIs and webhooks.
  • Convert Timestamps for Database QueriesConvert dates to Unix timestamps for SQL WHERE clauses and date-range queries.
  • Convert Timestamps for SchedulingConvert specific dates and times to Unix timestamps for use in scheduling systems and calendar APIs.

How It Works

All conversion runs directly in the browser using JavaScript's built-in Date object and the Intl suite (Intl.RelativeTimeFormat, Intl.DateTimeFormat, Intl.supportedValuesOf) โ€” no third-party library, no server round-trip. The only data that leaves your machine is nothing: the numbers stay local.

  1. 1
    Unit detection and normalization
    When you paste a timestamp, the tool counts its digits to infer the unit automatically: 10 digits means Unix seconds, 13 milliseconds, 16 microseconds, 19 nanoseconds. A hand-written digit-count heuristic flags a mismatch and offers a one-click unit switch, preventing silent mistakes like treating a 13-digit millisecond value as a year-55881 seconds value.
  2. 2
    Date construction via JavaScript Date
    The raw number is scaled to milliseconds and passed to new Date(ms). From there the built-in Date methods (getFullYear, getUTCHours, toISOString, etc.) produce local time, UTC time, and ISO 8601 output โ€” no parsing library involved.
  3. 3
    Locale-aware relative time via Intl.RelativeTimeFormat
    A live ticker fires every second and recomputes the relative label (e.g. '3 days ago', 'in 2 hours') using Intl.RelativeTimeFormat seeded with the page locale. This keeps the relative display accurate even if you leave the tab open, and produces grammatically correct output in every supported language without extra translation strings.
  4. 4
    Timezone display via Intl.DateTimeFormat
    Pinned IANA timezones (e.g. America/New_York, Asia/Tokyo) are formatted with Intl.DateTimeFormat using the timeZone option. The full list of browser-supported zone names comes from Intl.supportedValuesOf('timeZone'). Your pinned zones persist across sessions in localStorage.

Related Tools

Frequently Asked Questions