XML 格式化工具
格式化並美化 XML 文件。適用於 SOAP、網站地圖、RSS 訂閱源和設定檔。
如何使用本工具
- 1
Paste your XML into the text box (one line or many — minified XML works too).
- 2
Read the indented result that appears in the output panel below; it updates automatically as you type, with no button to press.
- 3
Select the formatted text in the output panel and copy it manually into your editor or file.
什麼是 XML 格式化工具?
XML 比 JSON 出現得更早,但至今仍廣泛用於企業整合、RSS/Atom 訂閱源、網站地圖和設定檔。本格式化工具會加入一致的縮排和換行,讓深度巢狀的 XML 變得易於閱讀。若要針對特定的 XSD 進行驗證,則需要使用專門的 XML 驗證器。
常見使用場景
Make a one-line SOAP response from a web service readable so you can trace which element holds a fault or value.
Re-indent a minified sitemap.xml or RSS/Atom feed before scanning it for missing or duplicated entries.
Tidy a hand-edited Maven pom.xml, Android layout, or Spring config so the nesting is obvious at a glance.
Pretty-print an XML API payload pulled from logs or a network capture for a quick visual review.
Turn an exported config blob (build files, .csproj, web.xml) into an indented form before diffing it against another version.
Format a snippet for a bug report or documentation so reviewers can follow the element hierarchy.
常見問題
我可以針對 XSD 進行驗證嗎?▼
帶命名空間的 XML 怎麼辦?▼
相關工具
JWT 解碼器
即時解碼 JSON Web Token(JWT)。完全在你的瀏覽器中執行:權杖絕不會離開你的裝置,可安全用於正式環境的密鑰。
JSON格式化與驗證工具
線上格式化、驗證和壓縮JSON。完全在你的瀏覽器中執行:你的資料永遠不會離開你的裝置。
Base64 編碼與解碼工具
將字串編碼為 Base64,或將 Base64 解碼為文字。尊重你的隱私:全部在你的瀏覽器中執行。
URL 編碼與解碼工具
將文字轉換為 URL 安全的編碼(百分號編碼),或進行反向轉換。適用於查詢字串、重新導向和 OAuth 流程。
HTML實體編碼與解碼工具
將特殊字元轉換為HTML實體(&、<等),或進行反向轉換。適用於將文字安全地嵌入HTML。
CSS壓縮工具
移除CSS中的註解、空白和不必要的字元,以減小檔案體積。