Epoch & Timestamp Converter

Convert Unix timestamps to dates in any timezone, with the seconds-or-milliseconds question answered for you.

Paste a bare epoch number in any unit, or a date string like 2026-01-01T00:00:00Z. The unit is worked out from the magnitude — override it above if the guess is wrong.

What It Does

This tool converts between Unix timestamps and human dates, and its real job is the part nobody else does properly: working out what unit your number is in. A bare epoch value can be seconds, milliseconds, microseconds or nanoseconds depending on which system produced it, and picking the wrong one silently gives you a date in 1970 or in the year 55000. The unit is inferred from the magnitude, stated openly, and can be overridden. Everything then follows — every unit, every common format, and the same instant in as many timezones as you want.

When to Use It

  • A log line has a bare epoch number and you need to know when it actually happened.
  • An API returned a timestamp that renders as 1970, and you need to confirm whether it is seconds or milliseconds.
  • You are coordinating a release or an incident across timezones and need one instant expressed in all of them.
  • You are writing a test fixture and need a stable epoch value for a specific date.

Worked Examples

1767225600

Ten digits, so it is read as seconds. Note that it is exactly midnight UTC — the analysis calls that out, because a date-only value compared against a full timestamp is where off-by-one-day bugs start.

1767225600000

The same instant in milliseconds. Thirteen digits puts it firmly in the milliseconds band, which is what JavaScript's Date.now() and most JVM APIs produce.

2147483648

One second past the 32-bit signed limit. This is the Year 2038 problem: any system still storing time in a 32-bit time_t wraps this to December 1901.

1000

Genuinely ambiguous, and the analysis says so rather than guessing confidently. It could be a real timestamp seventeen minutes into 1970, or a value in another unit — only you know which.

Common Mistakes

  • Assuming every timestamp is in seconds. Unix time is defined in seconds, but JavaScript, Java and many APIs work in milliseconds, and Go, Rust and databases often use microseconds or nanoseconds. A millisecond value read as seconds lands in the year 57000; a seconds value read as milliseconds lands in January 1970.
  • Comparing a date-only value against a full timestamp. A date stored as midnight UTC is a specific instant, and in any timezone west of Greenwich that instant falls on the previous calendar day. This is the single most common cause of reports being off by one day.
  • Storing time as a 32-bit signed integer. That counter overflows on 19 January 2038, and anything computing an expiry more than a decade out is already hitting it today. The analysis flags any value past the rollover.
  • Treating a timezone offset as a timezone. -05:00 is not the same thing as America/New_York, because the offset changes with daylight saving. Storing an offset instead of a zone name means future dates land an hour out for half the year.
  • Assuming local time is unambiguous. During a daylight-saving fall-back, one local hour happens twice; during spring-forward, another never happens at all. Store and transmit UTC, and convert to local only for display.

Features

Detects seconds
milliseconds
microseconds and nanoseconds from magnitude
Manual unit override when the guess is wrong
Every unit shown at once
ISO 8601 in UTC and in your own offset
HTTP date and local formats
Any number of timezones side by side with live DST flags
Relative phrasing such as 3 hours ago
Year 2038 rollover warning
Midnight-UTC date detection
Runs entirely in your browser

How to Use

1. Paste an epoch number or a date string — the box starts on the current time. 2. Check the detected unit in the analysis; override it in the dropdown if the guess is wrong. 3. Read the converted values, or copy any of them with the button beside it. 4. Add timezones from the dropdown to see the same instant everywhere you need it.

Frequently Asked Questions

Embed this Epoch & Timestamp Converter

Paste this snippet into your site to embed the tool.

Everything runs in your browser — nothing you enter is uploaded or stored. Timezone conversion and daylight-saving rules come from your browser's own IANA database, so results reflect whatever version of the timezone data your browser ships. Historical dates before about 1970, and dates far in the future, may differ from other tools because timezone rules change and past rules are recorded inconsistently. Unit detection is a magnitude heuristic, not a guarantee: it is stated openly and can always be overridden.

Explore related topics

#Developer #Converter #Web