Two kinds of line break, one decision
In a browser, plain text collapses runs of spaces into one and treats line breaks as spaces, so pasted text ends up as a lump. Converting to HTML means adding structure at each break: wrap every line in a paragraph, or insert a break tag between lines. The semantics differ. Paragraphs carry spacing, accept styling and suit prose; breaks only split lines and fit addresses, poems or code. The tool offers paragraphs, break tags and list items under output structure, escapes five special characters by default, and decides whether runs of blank lines collapse or stay as they were.
Steps
- Paste the text, one line per paragraph, leaving blank lines as they are.
- Choose the output structure: paragraphs for prose, breaks for addresses and verse.
- Keep escaping on the default; disable it only for content you fully trust.
- Set blank-line handling: collapse for compact output, keep to preserve layout.
- Use the Markdown conversion option first if the source carries Markdown syntax.
- Copy the HTML, download it as a file, or load the sample to see the result.
Five characters that must be escaped
Less-than, greater-than, ampersand, double quote and single quote carry syntax meaning in HTML, and left raw they mark tags or attribute boundaries. Escaping turns them into entities that display identically without being parsed. This is not optional: user-submitted content is always escaped, since one angle bracket can inject a script. The tool escapes by default, and the disable option suits only fragments you wrote and know contain no markup. List output adds item tags per line, but the outer container remains yours to add, or strict validation objects.
Common mistakes
Pasting text with angle brackets straight into a page lets the browser read tags and drop content. Using breaks for prose removes paragraph spacing and produces one slab. Choosing paragraphs when you need a list leaves styling unable to apply. Collapsing blank lines deletes the gaps that separated sections. Copying from a rich editor drags hidden styles and stray tags along. And pasting escaped entities back into an editor shows character codes instead of text.
Where this converter stops
Complex layout, tables and styling belong to a real editor rather than assembled plain text. Rich text lifted from a word processor or web page needs cleaning first, or tags arrive tangled with styles. Code belongs in a code block, since paragraph tags destroy indentation and monospacing. For user input, conversion is one step and server-side validation and escaping follow. And generated HTML carries no styles or document structure, so add containers and semantics before publishing.