Timestamp converter
Unix timestamp to date and time, both ways, with local, Beijing and UTC shown together
① 时间戳 → 日期时间
② 日期时间 → 时间戳
支持 YYYY-MM-DD HH:mm:ss / YYYY-MM-DD HH:mm / YYYY-MM-DD(缺的时间按 0 点算);按本机时区解释——本机是北京时间,填的就是北京时间。
FAQ
A Unix timestamp counts from 1970-01-01 00:00:00 UTC: 10 digits are seconds (e.g. 1700000000), 13 digits are milliseconds (e.g. 1700000000000). The page recognises the length automatically, and a length that matches neither (9 digits, 11/12 digits and so on) is reported directly instead of guessed.
The same instant is shown in three at once: your machine's local time zone, Beijing time (Asia/Shanghai), and UTC. Conversion goes through the browser's standard time-zone database (IANA time-zone names), and historical DST periods are handled by the rules automatically - use whichever you need.
Your machine's local time zone. For example, if your machine is in Beijing, entering 2026-09-19 12:00:00 means 12:00 noon Beijing time. To have it interpreted in another zone, first work out that zone's wall-clock time (our world-time page can do it), then enter the result.
No. Conversion and display happen entirely in the browser; no request is sent to any server. You can verify in the Network panel of developer tools - you will only see the page's own static resources.