Unix Timestamp Converter
About this tool
A long number in a log is useless until you know seconds versus milliseconds. Convert either way, switch Beijing time or UTC, and watch the current epoch. Treat milliseconds as seconds and you land near 1970.
Features
- Seconds and milliseconds in both directions
- Beijing time and UTC side by side
- Live current epoch you can pause and copy
How to use
- Copy the live second or millisecond value, or pause first.
- Paste a log number and pick the matching unit.
- Or type a datetime and read the epoch.
- If the year looks wrong, switch unit or timezone.
When to use it
- An API returns a 13-digit timestamp you need as a date
- Log epochs should be read in UTC, not the laptop zone
- A test fixture needs “now” as seconds or milliseconds
Examples
- 1700000000 as seconds is a datetime near late 2023 UTC.
- 1700000000000 as milliseconds is the same era; as seconds it is far in the future.
FAQ
How do I convert a 13-digit timestamp?
Thirteen digits are usually milliseconds. Select that unit. Seconds will invent a nonsense year.
Why do I get 1970?
Milliseconds were likely treated as seconds, so the value sits near the Unix epoch.
Beijing time versus UTC?
CST is UTC+8. Mainland China has no daylight saving, so do not add an extra hour.
Is the number uploaded?
No. Conversion stays in the browser.
When should I use the timezone converter?
This page maps epoch to wall time. Use the timezone converter to move the same instant between cities.
The live clock looks wrong.
It follows this device. Sync the system clock if the machine is drifting.
Back to Time Tools Hub
Guides