Timestamp Converter

Convert between Unix timestamps and human-readable dates.

Enter a value to convert

What a Unix Timestamp Is

A Unix timestamp counts the seconds elapsed since January 1, 1970, 00:00:00 UTC — the "epoch". It's the standard way databases, APIs and log files store points in time, because a single integer is unambiguous: no time zones, no date formats, no daylight-saving confusion.

Worked example: 1750000000 converts to Sun, 15 Jun 2025 15:06:40 UTC. The tool shows that alongside your local time, the ISO 8601 form (2025-06-15T15:06:40.000Z), and a relative label like "3 weeks ago" — one input, four readable answers, plus a copy-all button.

Both Directions

Switch modes to go the other way: paste any date string a browser can parse — 2026-05-02T12:00:00, May 2, 2026 — and get the Unix timestamp in seconds, in milliseconds, and the normalized ISO string. The "Use Current Timestamp" button fills in the epoch time for right now, handy for quick sanity checks against log entries.

Seconds vs. Milliseconds — the #1 Pitfall

Unix time comes in two common resolutions, and mixing them up produces absurd dates:

DigitsUnitUsed byExample
10SecondsUnix tools, PHP, Python, most APIs1750000000
13MillisecondsJavaScript Date.now(), Java1750000000000

This converter expects seconds. Paste a 13-digit millisecond value and you'll land tens of thousands of years in the future — if the result looks like the year 57432, drop the last three digits and try again. Converting a date to a timestamp gives you both units, so you can pick whichever your code needs.

Time Zones and Other Gotchas

  • Timestamps have no time zone. 1750000000 is the same instant everywhere; only its display differs. The tool shows both UTC and your local zone so you can see the offset at a glance.
  • Date strings without a zone are ambiguous. 2026-05-02T12:00:00 is interpreted in your local time zone; append Z to pin it to UTC.
  • The year-2038 problem: signed 32-bit systems overflow at timestamp 2,147,483,647 (Jan 19, 2038). Modern 64-bit systems — and this tool — are unaffected.

All conversion happens in your browser; nothing is sent to a server. Working with API payloads? Pretty-print them first in the JSON formatter, or generate request IDs with the UUID generator.

Frequently Asked Questions

What is a Unix timestamp?
The number of seconds since January 1, 1970, 00:00:00 UTC. It is the standard machine-readable time format in programming, databases, and log files — a single integer with no time-zone ambiguity.
My result is thousands of years in the future — why?
You pasted a millisecond timestamp (13 digits) into a converter expecting seconds (10 digits). Remove the last three digits, or divide by 1000, and convert again.
What output formats does the converter show?
Four at once: UTC (RFC-style), your local time zone, ISO 8601 (2025-06-15T15:06:40.000Z), and a relative time like "5 days ago". Date-to-timestamp mode returns seconds, milliseconds, and the ISO string.
How do I get the current Unix timestamp?
Click "Use Current Timestamp" — it inserts the epoch seconds for right now. In code: Math.floor(Date.now()/1000) in JavaScript, time.time() in Python, date +%s in a shell.
Are negative timestamps valid?
Yes — they represent dates before 1970. For example, -86400 is December 31, 1969. Most systems handle them fine, though some older APIs reject them.