Skip to content

Text to HTML

Turn plain text into safe HTML: escapes <, >, & and quotes, and creates paragraphs and line breaks.

AvailableIn your browserInput: Text

How to use: Text to HTML

  1. Paste the plain text.
  2. Choose <p> paragraphs, <br> line breaks and whether you want a full HTML document.
  3. Copy the code or download the .html.

What it accepts and what you get

Input
Plain text.
Output
HTML code with <, >, &, quotes and apostrophes escaped.
Where your data is processed
Your data is processed in your browser and is not sent to our servers.

Limitations and notes

  • The code is shown, never run on this page.
  • To convert formatted Markdown use “Markdown to HTML”.

Frequently asked questions

How do I turn plain text into HTML?

Paste the text, choose <p> paragraphs or <br> breaks, and whether you want a full document; then copy the code or download the .html.

Are special characters escaped?

Yes: <, >, &, quotes and apostrophes are escaped, and the code is only displayed, never run on this page. For Markdown use “Markdown to HTML”.

Why are “<” and “&” escaped?

Because those characters have a special meaning in HTML. Escaping them (&lt;, &amp;) makes the browser show them as text instead of reading them as code.

When do I use paragraphs and when line breaks?

Use <p> paragraphs when each block separated by a blank line is a separate idea, and <br> breaks when you want to keep every line as you typed it, for example in an address or a poem.

When to use it

  • When you want to turn plain text into HTML with paragraphs and line breaks.
  • To show text containing <, > or & without it being read as code.
  • When you have to paste a text into a web editor that only accepts HTML.

Examples

Paragraphs
Paste the text and choose <p> paragraphs to get each block in its tag.
Full document
Turn on the full HTML document to download an .html.
A text with “&”
“Fashion & Style” becomes “Fashion &amp; Style” so the browser shows it correctly.

Common mistakes

  • Expecting rich formatting: for Markdown use “Markdown to HTML”.
  • Thinking the code runs: it is only shown.
  • Pasting the result into another tool that also escapes: the characters would be escaped twice.

Suggested next steps