XML को उचित इंडेंटेशन के साथ सुंदर बनाएं, या इसे एकल लाइन में मिनिफाई करें। टिप्पणियां, CDATA और प्रोसेसिंग निर्देश संरक्षित हैं।
XML Formatter का उपयोग कैसे करें
अपना XML इनपुट बॉक्स में पेस्ट करें।
इंडेंट करने के लिए Beautify या संपीड़ित करने के लिए Minify चुनें।
इंडेंट आकार चुनें, फिर परिणाम कॉपी करें।
This is an XML formatter that beautifies a document with proper, depth-based indentation, or minifies it to a single line. It preserves comments, CDATA sections, processing instructions and the XML declaration.
Formatting runs entirely in your browser, so your data never leaves your device, which makes it safe even for XML that contains sensitive values.
XML is verbose and deeply nested. Indenting each element by its depth and putting tags on their own lines turns a wall of angle brackets into a structure you can actually follow.
It is useful across the many places XML still lives: SOAP responses, RSS feeds, build and config files, and document formats, where a quick reformat makes debugging far easier.
Beautifying keeps a single text child inline with its tags, so simple values stay compact, while the declaration, comments and CDATA are kept exactly as they were rather than being reflowed or dropped.
Minifying removes comments and the whitespace used only for indentation between tags. Text content and CDATA are kept exactly, so it is safe unless your document relies on significant whitespace in mixed content.
The tool reformats for readability and does not validate against a schema. Clean layout does not mean the document matches any DTD or XSD you expect.
अक्सर पूछे जाने वाले सवाल
यह प्रत्येक तत्व को उसकी नेस्टिंग गहराई से इंडेंट करता है और टैग को अपनी लाइनों पर रखता है, जबकि एकल टेक्स्ट चाइल्ड को इनलाइन रखता है। टिप्पणियां, CDATA और XML घोषणा संरक्षित हैं।
यह टैग के बीच केवल इंडेंटेशन के लिए उपयोग की जाने वाली टिप्पणियां और व्हाइटस्पेस हटाता है। टेक्स्ट सामग्री और CDATA सेक्शन बिल्कुल रखे जाते हैं।
नहीं। फॉर्मेटिंग पूरी तरह आपके ब्राउज़र में चलती है, इसलिए आपका डेटा आपके डिवाइस से कभी बाहर नहीं जाता।
इस टूल को एम्बेड करें
इस टूल को अपनी वेबसाइट में जोड़ें। नीचे दिया स्निपेट कॉपी करें; यह अपने आप अपडेट रहता है।
<iframe src="https://monu.tools/embed/hi/xml-formatter" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>संबंधित टूल
CSS को साफ इंडेंटेशन के साथ सुंदर बनाएं, या फ़ाइल आकार कम करने के लिए मिनिफाई करें। मीडिया क्वेरी, calc() और लाइसेंस टिप्पणियां संभालता है।
HTML को ब्लॉक-अवेयर इंडेंटेशन के साथ सुंदर बनाएं, या मिनिफाई करें। pre, textarea, script और style की सामग्री संरक्षित है।
JavaScript को सुसंगत इंडेंटेशन और स्पेसिंग के साथ सुंदर बनाएं और प्रिटिफाई करें। पूरी तरह आपके ब्राउज़र में चलता है।
CSV को Excel .xlsx फ़ाइल में और Excel को वापस CSV में बदलें, पूरी तरह आपके ब्राउज़र में। दोनों दिशाओं में काम करता है।