TextZap / HTML formatter
FREE ONLINE TEXT TOOLS

HTML formatter

Format HTML markup

✓ No sign-up✓ Local processing

HTML formatter

HTML formatter: What it does

Lay out HTML markup for easier inspection.

How to use

Enter the data or select the parameters, run the tool and review the result before copying.

Example

Input text

<div><span title="sun  forest">sun</span><!-- forest --></div>

Result

<div>
<span title="sun  forest">sun</span>
<!-- forest -->
</div>

Limitations

Inserts a line break between adjacent tags. Check inline text and embedded scripts where whitespace matters.

Explore all 200 text tools

Analysis · 25

Formatting · 30

Cleaning · 15

Generators · 20

Conversion · 30

SEO & extraction · 35

URL slug generatorCreate a clean URL slugKeyword density checkerCalculate frequency and percentage of wordsKeyword occurrence counterCount literal keyword occurrences ignoring caseExtract emailsExtract common email address patternsExtract URLsExtract HTTP and HTTPS URLsExtract numbersExtract signed integers and decimalsExtract hashtagsExtract unique hashtagsExtract mentionsExtract social media mentionsMeta title length checkerMeasure title length against a chosen character targetMeta description length checkerMeasure description length against a chosen targetN-gram counterCount consecutive word groupsExtract domainsExtract hostnames from web URLsText truncatorLimit text to a chosen character countExtract HTML headingsExtract H1 through H6 headings from HTMLExtract HTML linksExtract href attributes from HTML anchorsReadability checkerAnalyze sentence length and long wordsFlesch reading easeEstimate English Flesch reading easeSyllable counterEstimate syllables using language-specific vowel rulesEssay word counterTrack essay word count against a targetText similarity checkerCompare unique word sets using Jaccard similarityStop words removerRemove common words using the list for the selected languageLong sentence finderFind sentences exceeding a word limitGoogle SERP previewPreview a sample search result snippetOpen Graph generatorGenerate escaped social sharing meta tagsRobots.txt generatorGenerate robots.txt from disallowed pathsSitemap XML generatorGenerate sitemap from absolute URLs, one per lineHreflang generatorEnter language code and URL on each lineCanonical tag generatorGenerate canonical tag from absolute URLSchema markup generatorEnter website name and URL on separate linesMeta tag generatorEnter title and description on separate linesTwitter card generatorEnter title, description and image URL on separate linesUTM builderEnter URL, source, medium and campaign on separate linesURL parserInspect URL componentsURL cleanerRemove common tracking parametersRedirect generatorEnter old path and new absolute URL on separate lines

Social Media · 20

Developer Tools · 25