DevToolHere

How to Convert Unix Timestamps

Unix timestamps — the number of seconds since January 1, 1970 — are everywhere in APIs, databases, and logs. But staring at 1710345600 tells you nothing. This tool converts timestamps to human-readable dates and handles all the edge cases around timezones and formats.

Try Timestamp Converter Now

Free, no signup. Works in your browser.

Open Tool
1

Enter a Unix timestamp

Type or paste a Unix timestamp in the input field. The tool auto-detects whether it is in seconds (10 digits) or milliseconds (13 digits) and shows the converted date immediately.

2

Or enter a human-readable date

Use the date picker or type a date in any common format (ISO 8601, RFC 2822, or natural language like 'March 13, 2026'). The tool converts it to a Unix timestamp in both seconds and milliseconds.

3

Select your timezone

Choose your local timezone or any IANA timezone (e.g., America/New_York, Europe/London, Asia/Tokyo) from the dropdown. The converted date adjusts to reflect the selected timezone.

4

View multiple output formats

The tool displays the date in ISO 8601, RFC 2822, relative time ('3 hours ago'), and your local format simultaneously. Each format has a copy button for quick use.

5

Use the live clock

The current Unix timestamp is displayed as a live counter at the top of the page. This is handy for generating 'now' timestamps for API testing or debugging time-sensitive logic.

Pro Tips

  • *JavaScript Date.now() returns milliseconds, but most APIs expect seconds — remember to divide by 1000.
  • *Unix timestamps do not account for leap seconds — this is by design and rarely matters in practice.
  • *Store timestamps in UTC and convert to local time only at the display layer to avoid timezone bugs.
  • *The Year 2038 problem affects 32-bit Unix timestamps — make sure your systems use 64-bit integers.
  • *Use ISO 8601 format (2026-03-13T12:00:00Z) for human-readable dates in APIs — it is unambiguous and sortable.

Related Guides

Explore all 110+ tools