MDevTools

Unix Timestamp ConverterUnix 时间戳转换

Convert between Unix timestamps and dates.

时间戳与日期双向互转,显示当前秒级与毫秒级时间戳,不受设备时区影响。

What is Unix Timestamp Converter?Unix 时间戳转换 是什么?

A Unix timestamp converter translates between Unix time — the number of seconds or milliseconds since 1 January 1970 UTC — and human-readable dates in your own time zone. It converts in both directions, supports both seconds and milliseconds, and shows the current time as a live timestamp. Handy for log analysis, API debugging and database work.

Unix 时间戳转换器在 Unix 时间(1970 年 1 月 1 日 UTC 起的秒数或毫秒数)与你所在时区的可读日期之间双向转换,同时支持秒和毫秒,并实时显示当前时间戳。适用于日志分析、接口调试和数据库操作。

How to use unix timestamp converter如何使用 Unix 时间戳转换

  1. To convert a timestamp, paste the seconds or milliseconds value into the input.
  2. To convert a date, pick the date and time and let the tool produce the timestamp.
  3. Check the output in your local time zone and in UTC — most server-side bugs are time zone bugs.
  4. Copy the result in the unit you need, seconds or milliseconds.
  1. 要转时间戳:把秒或毫秒值粘进输入框。
  2. 要转日期:选择日期时间,工具会给出对应时间戳。
  3. 同时查看本地时区与 UTC 输出——大多数服务端日期 bug 都是时区问题。
  4. 按需要复制秒或毫秒结果。

Common uses常见用途

FAQ常见问题

Seconds or milliseconds — how do I tell?怎么区分秒和毫秒?

A 10-digit value is seconds; a 13-digit value is milliseconds. Current seconds-based timestamps are around 1.7 billion, while milliseconds are around 1.7 trillion.

10 位是秒,13 位是毫秒。当前秒级时间戳约 17 亿,毫秒级约 1.7 万亿。

Why is my timestamp off by a few hours?为什么我的时间戳差了几小时?

Unix time is defined in UTC. If you convert it into a local time zone, the displayed time shifts by your offset. Always compare server values in UTC.

Unix 时间以 UTC 定义。转换成本地时区时,显示时间会按偏移量平移。比对服务端值应始终用 UTC。

What happens in the year 2038?2038 年会发生什么?

Systems that store Unix time in a signed 32-bit integer overflow in January 2038. Modern 64-bit systems are unaffected.

用有符号 32 位整数存 Unix 时间的系统会在 2038 年 1 月溢出。现代 64 位系统不受影响。

Is the conversion done locally?转换是本地做的吗?

Yes, using your browser own clock and time zone. Nothing is sent to a server.

是,使用你浏览器的系统时钟与时区,不发送到任何服务器。

Other tools其他工具

🧾

JSON FormatterJSON 格式化

Format, validate and minify JSON — Chinese-safe, runs in your br…

格式化、校验并压缩 JSON,支持中文与错误定位。全程在浏览器本地完成。…

🔤

Base64 Encode / DecodeBase64 编解码

Encode or decode Base64 text with UTF-8 and URL-safe support.…

对文本进行 Base64 编码或解码,支持 UTF-8 中文与 URL 安全字符…

🔗

URL Encode / DecodeURL 编解码

Percent-encode or decode URLs, params and text.…

对网址、参数或文本进行 URL 百分号编码与解码,方便调试接口与链接。…

#️⃣

Hash Generator哈希生成

Generate MD5, SHA-1, SHA-256 or SHA-512 hashes.…

用 MD5、SHA-1、SHA-256 或 SHA-512 为文本生成哈希值,常…

🆔

UUID GeneratorUUID 生成

Generate random UUID v4 identifiers.…

一键生成多个随机 UUID v4,用于主键、追踪 ID 与测试数据。…

🎫

JWT DecoderJWT 解码

Decode a JSON Web Token locally, no upload.…

在浏览器本地解码 JSON Web Token 的 Header 与 Paylo…

Sister sites友情链接 MonkeyDev dev tools hub工具总站 FreePDFKit PDF toolsPDF 工具集 ImageToolKit image tools图片工具集 AI 咒语库 AI prompt libraryAI 提示词库 CalcKit finance calculators财务计算器 OfficeKit office utilities办公工具箱 AIkit AI & machine learningAI 与机器学习 DataKit data & spreadsheet tools数据与表格工具 ChartKit diagrams & charts图表与可视化 DocKit markdown & document toolsMarkdown 与文档工具