इस टूल में कोई समस्या है?

«HTML फ़ॉर्मेटर ऑनलाइन» के बारे में

यह टूल पठनीयता के लिए HTML स्रोत को पुनः फ़ॉर्मेट करता है। यह नेस्टेड टैग को फिर से इंडेंट करता है, लंबी पंक्तियों को तोड़ता है, विशेषताओं के अंदर रिक्ति को सामान्य करता है, और स्कैन और संपादित करने में आसान आउटपुट उत्पन्न करता है।

उत्पादन पृष्ठ पर व्यू सोर्स का निरीक्षण करते समय, कोड समीक्षा के लिए HTML तैयार करते समय उपयोगी।

फॉर्मेटर HTML5 void तत्वों को समझता है और <pre>, <script>, और <textarea> तत्वों की सामग्री को verbatim संरक्षित करता है।

इस टूल का उपयोग कैसे करें

How to pretty-print minified or jumbled HTML

  1. Paste the HTML

    Drop the minified or hand-written-but-messy HTML into the "HTML" field. Both full documents (with `<!doctype>`) and fragments are accepted.

  2. Press Run

    Result returns a single `formatted` field. Two-space indentation, one tag per line at structural breaks. Inline-level elements stay on one line when adjacent to text, so `<p>Hi <strong>there</strong></p>` doesn't sprout three lines.

  3. What gets preserved

    Attributes stay on the same line as the opening tag — no wrapping when there are many attributes. Comments (`<!-- … -->`), `<script>`, `<style>`, and `<pre>` contents pass through verbatim to avoid corrupting JS or whitespace-sensitive text.

  4. Round-trip considerations

    Format for review, then minify before deploy. The formatter is forgiving of invalid HTML, so a tag missed at input may quietly close earlier than you expect in output. Validate with the W3C validator after formatting if the input was suspect.