Logo Dojo
Dojo Toolbox
Login Daftar
Dojo
Login Daftar

Newline to <br> Converter

Turn plain-text line breaks into HTML &lt;br&gt; tags so your formatting survives when pasting into HTML editors, CMS text mode, or email templates.

Rendered preview

How to use

  1. Paste your multi-line text.
  2. Click Convert to replace newlines with <br> tags.
  3. Copy the HTML and paste it into your editor.

Frequently asked questions

Why do my line breaks disappear in HTML?

HTML collapses plain newlines into a single space. You need <br> tags (or paragraphs) to force visible line breaks.

Does it escape existing HTML?

The tool converts newlines only; make sure your input is plain text to avoid double-encoding tags.

Can I convert <br> back to newlines?

Yes — strip the tags or use our text converters to rebuild plain-text lines.