How to Indent/Prettify HTML File in Notepad++

There are multiple ways you can intent (format or prettify) the content of an HTML file in Notepad++ text editor, let us take a look at a few of the plugins

1. Using XML Tools

As HTML is a special form of XML you can make use of the XML Tools to format your HMTL code.

Go to Plugins -> XML Tools -> Pretty Print



2. Using "Indent by Fold" Tools

Go to Plugins -> Indent by Fold -> Reindent File

Note: You will need to install the "Indent by Fold" plugin using the Plugin Admin to use it.
Before Indent HTML file in Notepad++

Before Indent HTML file in Notepad++

After Indent HTML file in Notepad++

After Indent HTML file in Notepad++


This is not an AI-generated article but is demonstrated by a human on Windows 11 device.

Please support independent contributors like Code2care by donating a coffee.

Buy me a coffee!

Buy Code2care a Coffee!

Comments & Discussion

Facing issues? Have questions? Post them here! We're happy to help!