Unix Timestamp Converter

Convert between Unix epoch time and dates in any timezone. 100% local.

Current time Updates every second
Unix (s)
—
Unix (ms)
—
Local
—
UTC
—
Convert Seconds or milliseconds — detected automatically

Unix Timestamp Converter / 时间戳转换工具

Convert between Unix epoch time (seconds or milliseconds, detected automatically) and human-readable dates in any timezone — plus a live current-time clock — entirely in your browser. 在线Unix时间戳转换工具:秒级/毫秒级时间戳与日期时间互转(自动识别单位),支持任意时区显示,并带实时当前时间戳时钟。All processing is local; no data is uploaded.

What is a Unix timestamp? / 什么是 Unix 时间戳?

A Unix timestamp counts the number of seconds (or milliseconds) that have elapsed since 00:00:00 UTC on 1 January 1970 (the "epoch"). It is timezone-free, which makes it the universal way to store and compare points in time in code, logs, APIs and databases. Unix 时间戳是从 1970-01-01 00:00:00 UTC 起经过的秒数(或毫秒数),与时区无关,是代码、日志、API 中记录时间的通用方式。

Features / 功能

  • Live current Unix time in seconds and milliseconds, updated every second
  • Automatic detection of seconds vs milliseconds input
  • Display any timestamp in your selected timezone (Shanghai, Tokyo, New York, ...)
  • Relative readout — "3 days 4 hours ago" / "in 2 days"
  • Quick presets: now, 1 hour ago, 1 day ago, 7 days ago, tomorrow

Privacy / 隐私说明

Everything runs locally with the browser's Intl date APIs. Your inputs never leave the page. 纯本地计算,数据不外传。

FAQ / 常见问题

Q: My app expects milliseconds but I have seconds — what do I do? / 单位不对怎么办? — Multiply by 1,000 to go from seconds to milliseconds, or divide by 1,000 to go the other way. 秒 × 1000 = 毫秒。

Q: Why do two timezones show different wall-clock times for the same timestamp? / 为什么不同时区显示不一样? — A timestamp is one absolute moment; the displayed hour/minute shifts with the timezone offset. 时间戳是绝对时刻,显示随本地时区偏移变化。

Related tools / 相关工具

  • UUID Generator — v7 UUIDs embed this same millisecond clock UUID生成
  • JSON Formatter — read timestamps inside API payloads JSON格式化
  • Hash Calculator — checksum log files with timestamps 哈希计算
  • Regex Builder — build & test regexes with plain-language questions 正则生成