Paste plain text with line breaks, and the tool converts each break into an HTML <br> tag — toggle XHTML mode for self-closing tags, or reverse the conversion.
It replaces every newline character (\n, \r or \r\n) in your text with an HTML <br> tag so line breaks survive when the text is rendered inside HTML, mirroring PHP's nl2br() function.
XHTML and self-closing HTML require void elements to be closed, so XHTML mode outputs <br /> with a trailing slash instead of <br>. Standard HTML5 accepts either form.
Yes, switch to reverse mode to turn <br>, <br/> and <br /> tags back into plain newline characters, which is handy when cleaning HTML into editable plain text.