Text to HTML paragraphs converter
Handy for moving text from an editor or email into a web page or store template without losing paragraphs or breaking symbols.
Loading the tool…
Processing and privacy: The result is calculated inside your browser and your data is not sent to any server.
How to use it
- Enter text, line breaks inside a paragraph become <br> and escape special characters (& < >).
- The result appears straight away and updates as you edit.
- Copy the result, or copy a link that keeps the same values to share it.
How it is calculated
Split the text into paragraphs at blank lines, escape &, < and > to &, < and >, then wrap each paragraph in <p>, joining its lines with <br> or a space.
Example
Inputs: Line breaks inside a paragraph become <br> = yes, Escape special characters (& < >) = yes. Result: Result: <p>Welcome to our store.<br> We ship across the Gulf.</p> <p>Prices include VAT & delivery.</p>; Paragraphs: 2.
Welcome to our store. We ship across the Gulf. Prices include VAT & delivery.
<p>Welcome to our store.<br> We ship across the Gulf.</p> <p>Prices include VAT & delivery.</p>
Limits and caveats
- Headings and lists are not detected; every block becomes a paragraph. For formatting use the Markdown to HTML tool.
Questions about this tool
When does a new paragraph start?
Whenever one or more blank lines separate two blocks of text.
Why escape special characters?
A < can be read as the start of a tag and hide words, and & can be read as an HTML entity.
Does it work with Arabic text?
Yes. Arabic letters stay as they are; add dir="rtl" to the page or the container.
