🖥️ Device Info View Device
Inspect your device and browser details in your browser — screen, OS, engine and capabilities, with no tracking.
📐 工作原理與說明
螢幕與視口:解析度取 screen.width × screen.height,視口取 window.innerWidth × window.innerHeight,裝置畫素比 devicePixelRatio 保留兩位,可用區域取 screen.availWidth × screen.availHeight。瀏覽器與系統由 userAgent 正則判定,依次匹配 Edg/、Chrome/、Firefox/、Version/…Safari 取版本號;系統匹配 Windows NT 10(判 Windows 10/11)、Windows NT、Mac OS X、Android(帶版本)、iPhone|iPad|iPod、Linux。移動裝置判據 /Mobi|Android|iPhone|iPad/i,觸控支援判據 window 含 ontouchstart 或 maxTouchPoints > 0。時區偏移 = −new Date().getTimezoneOffset() ÷ 60,非負標東、負標西;電池電量 = round(level × 100),進度條寬度即該百分比
讀取瀏覽器可見的裝置與執行環境資訊。
- 來源:
navigator.userAgent、platform、language、screen、devicePixelRatio、時區等。 - 硬體:
hardwareConcurrency給出邏輯核心數,deviceMemory給出粗略記憶體(GB)。 - 侷限:UA 可被偽造,且瀏覽器正推進 UA 凍結,推薦改用 Client Hints。
- 用途:相容性判斷與問題排查,不應作為能力檢測的唯一依據。
📱 螢幕資訊
🌐 瀏覽器資訊
Identification comes from the User-Agent and may be wrong when the browser freezes/reduces UA strings, desktop mode, spoofing or custom UAs are used; iPad desktop mode can only be inferred from touch points. It cannot uniquely identify a device or a person.
🌍 語言與時區
🔋 電池與網路
🔑 UserAgent
💡 用途說明
- 開發除錯:檢查 viewport、畫素比、裝置方向
- 相容性測試:檢視瀏覽器版本、特性支援
- 效能分析:硬體併發數、網路速度
- 地理位置與時區:無需後端即可顯示使用者環境
- 所有資料僅在瀏覽器本地顯示,不會上傳
📚 深度解析:裝置與瀏覽器資訊
💡 常見使用場景
- 展示當前 UA/螢幕/語言等環境資訊。
- 復現使用者環境:讓使用者開啟本頁截圖,即可拿到 UA、螢幕尺寸、DPR、語言與時區,定位只在特定裝置出現的問題。
檢視
頁面讀取 navigator.userAgent、screen.width、Intl 語言並展示。
❓ 常見問題(FAQ)
- 資訊準確嗎?
- 來自瀏覽器自報,可被修改。
- 能用它做指紋追蹤嗎?
- 理論上這些欄位可組合成裝置指紋,但現代瀏覽器正在收緊:Safari 與 Firefox 會刻意模糊 UA 與部分 API,Chrome 也在推進 User-Agent Reduction 與隱私預算。因此它不適合作為穩定的使用者標識,合規上也應先取得使用者同意。
📈 📈 裝置快照記錄與對比
每次完成後自動儲存在本機瀏覽器,可匯出 CSV 備份或隨時清空。
Formula & Standard References
| Item | Formula / Note | Source / Standard |
|---|---|---|
| User-Agent | space-separated product tokens with comments; spoofable | RFC 9110 Section 10.1.5 |
| Client hints | Sec-CH-UA headers offer structured client metadata | W3C Client Hints |
| Feature detection | prefer feature detection over UA sniffing | MDN Web Docs |
⚠️ 使用說明與注意事項
- 本工具純前端執行,資料不會上傳到伺服器
- 建議在主流瀏覽器(Chrome/Safari/Firefox/Edge)中使用
- 計算結果僅供參考,請以實際應用場景為準