Conversion 100% in your browser

Text to HTML

Free Text to HTML converter online. Instantly transform plain text into valid HTML markup with paragraphs, line breaks, lists, and tags fast now.

Convert normal Text to HTML Code

Click the button after pasting your content into the box below. The HTML code will appear in the second box at the bottom.

<p>: Use paragraph tags

<br />: Use line break tags

Encode characters with accents and similar

HTML Formatted Text

Copy your HTML formatted text from the box below.

Turn Plain Text into Clean HTML Paragraphs

Paste plain text and get HTML you can use in a web page, a CMS or an email template. Choose paragraph tags or line break tags, and decide whether accents and special characters are written as HTML entities. The conversion runs in your browser.

Step by step

  1. Paste your text into the upper box.
  2. Choose <p>: Use paragraph tags or <br />: Use line break tags, and tick or untick Encode characters with accents and similar.
  3. Click Convert Text to HTML. The code appears in the second box, and a click inside it selects all of it.
  4. Copy it with Copy to Clipboard. Reset empties both boxes.

Example

Text typed as:

Café & Co
Open daily

Welcome!

With paragraph tags and encoding on, the result is:

<p>Caf&eacute; &amp; Co Open daily</p>

<p>Welcome!</p>

With line break tags it becomes:

Caf&eacute; &amp; Co<br />
Open daily<br />
<br />
Welcome!

When to use it

  • Publishing text on a web page: turn a draft written in a text editor into paragraphs.
  • HTML emails and newsletters: prepare simple blocks of text for a template.
  • Showing code as text: the characters < > and & are always escaped, so pasted markup is displayed instead of being interpreted.

Good to know

In paragraph mode, empty lines separate the paragraphs and the lines inside a paragraph are joined with a space. In line break mode, each line ends with <br /> and empty lines at the start and end are removed. In both modes, repeated spaces and tabs become a single space. When encoding is on, quotation marks, backticks and every character outside ASCII are replaced too, for example é by &eacute; and € by &euro;.

The tool does not create headings, lists or links. For that, use the Markdown to HTML Converter. To escape or decode entities directly, use the HTML Entities Encoder and Decoder, and to go back from HTML to text, the HTML to Plain Text Converter.

Frequently asked questions

Should I choose paragraph tags or line break tags?
Use paragraph tags for normal text made of paragraphs. Use line break tags when every line must stay on its own line, such as an address or a poem.

Why did my line breaks disappear in paragraph mode?
In HTML a single line break inside a paragraph is treated as a space. Leave an empty line between paragraphs, or switch to line break tags.

When should I encode accented characters?
When the page that will receive the code is not served as UTF-8 or special characters appear wrongly. On a UTF-8 page you can untick the option and keep the text readable.

Is my text stored?
No. The conversion happens in your browser and nothing is sent to a server.