Skip to content

Developer Tools · free · no sign-up

Text to HTML

Convert plain text into HTML paragraphs.

How it works Report a problem

Text to HTML

Automatically wrap plain text into valid HTML paragraphs and breaks

0
Source Text
1

About the Text to HTML

Convert plain text into HTML paragraphs.

How to use the Text to HTML

  1. Paste your plain text or click Load Sample.
  2. Choose Wrap in <p> tags and Convert newlines to <br> as needed.
  3. Press Convert to HTML, then Copy or Download.

Worked example

Two paragraphs separated by a blank line become <p>First</p> and <p>Second</p>.

Tips

  • Special characters such as < and & are escaped so they display correctly.

Frequently asked questions

When should I use br instead of p?
Use p for paragraphs and br for a line break inside one, such as in an address.