Formatting a raw dump of HTML/code

Apologies if this has been answered previously, I have searched but can’t find a solid answer.

I have a huge dump of raw HTML, and when I import it into a file for Atom to view the code is not formatted nicely and essentially just one big line of code.

Is there a way I can get Atom to read the code and format it nicely into indented sections etc. starting and ending with the HTML so it is easier to read?

Thanks,
Tony

Atom Beautify package will … beautify (reformat) your code.

There are several prettier packages and atom-beautify. Be advised that the latter tracks user actions in a way that is not compliant with the GDPR or the CCPA.

Shameless plug: do-no-track prevents tracking