Unix Timestamp Converter

Convert between Unix epoch timestamps (seconds or milliseconds since 1970-01-01) and human-readable dates in any timezone. Includes a current-timestamp display, ISO 8601 formatting, and 12/24-hour modes.

ConvertResult
Timetimestamp(sec):
Timetimestamp(millisec):
Date(ISO):
Date(local):
RelativeTime:

Unix Timestamp Converter — Seconds / Milliseconds Online

About this tool

A Unix timestamp counts seconds (or milliseconds) since 1970-01-01 00:00:00 UTC. It is the lingua franca of databases, logs, APIs, and cron jobs. This tool converts between seconds/milliseconds and human-readable dates, showing UTC, your local timezone, weekday, and ISO 8601 string.

How to use

  1. Pick direction: timestamp → date, or date → timestamp
  2. Enter the timestamp (auto-detects 10-digit sec / 13-digit ms) or pick a date
  3. Output shows UTC and your local timezone; copy with one click

Use Cases

FAQ

Q: 10 or 13 digits?
A: 10 = seconds (covers 1970-2038). 13 = milliseconds (JS Date.now()). The tool auto-detects.

Q: Wrong time displayed?
A: Check timezone. We use your browser locale; China is UTC+8.

Q: 2038 problem?
A: 32-bit signed second timestamps overflow on 2038-01-19. Modern systems use 64-bit.

Tips & Related Tools

MySQL: UNIX_TIMESTAMP() returns seconds, FROM_UNIXTIME() reverses.

JS: Math.floor(Date.now()/1000) for seconds; new Date(ts*1000) for Date.

Python: time.time() returns float seconds; datetime.fromtimestamp(ts, tz) reverses.

Common Use Cases

Use the Timestamp Converter online for these scenarios:

Frequently Asked Questions

Here are the most common questions:

Q: Is JavaScript timestamp seconds or milliseconds?
A: JavaScript Date.now() returns milliseconds. Unix timestamps are usually seconds.

Q: How does timezone work?
A: Timestamps are UTC, timezone-independent. Display converts to local timezone automatically.

Q: Year 2038 problem?
A: 32-bit Unix timestamp overflows at 2038-01-19. 64-bit is standard now, no problem.

Related Tutorials

Want to learn more about Unix Timestamp Converter Online Free? Check out these tutorials: