Code → HTML <p> generator

Paste your code/text, then click Generate. Output will be an HTML-safe <p> snippet with indentation preserved (leading spaces → &nbsp;) and lines broken with <br> so you can paste it into a blog.

Generated HTML (paste into your blog)

Live preview