Search tools

Text to HTML Converter

Paste plain text and get clean HTML instantly: blank lines become <p> paragraphs, line breaks become <br>, dashes become lists and web addresses become links, with every special character escaped. It also converts Markdown to HTML and HTML back to plain text.

Updated By Rules verified 2026-10-19Conversion rules

Convert text to HTML

324 characters

Preview

Kedai Kopi Bukit Besi
Jalan Besar, Dungun

Menu hari ini:

  • Kopi O
  • Teh tarik
  • Roti canai

Tempah di https://www.example.com atau e-mel order@example.com. Harga < RM5 & sedap!

Advertisement

How to convert text to HTML

  1. Paste your text. Leave a blank line between paragraphs.
  2. Start list lines with - or 1. to get a bulleted or numbered list.
  3. Choose the options: line breaks, links, new tab, nofollow.
  4. Check the preview, then copy the HTML code or download a complete page.
  5. Paste into the HTML view of Blogger, WordPress or your email tool.

Conversion rules

Each example below is converted by the same code the tool runs.

What your text becomes
You typeHTML
Blank line between blocks
First paragraph.

Second paragraph.
<p>First paragraph.</p>
<p>Second paragraph.</p>
Single line break
Jalan Besar
23000 Dungun
<p>Jalan Besar<br>
23000 Dungun</p>
Lines starting with -
- Kopi
- Teh
<ul>
<li>Kopi</li>
<li>Teh</li>
</ul>
Lines starting with numbers
1. Wash
2. Steam
<ol>
<li>Wash</li>
<li>Steam</li>
</ol>
Web address and email
Visit www.example.com or mail hi@example.com
<p>Visit <a href="https://www.example.com">www.example.com</a> or mail <a href="mailto:hi@example.com">hi@example.com</a></p>
Special characters
5 < 10 & "quotes"
<p>5 &lt; 10 &amp; &quot;quotes&quot;</p>

Advertisement

Characters that are escaped

HTML special characters
CharacterWritten asWhy
<&lt;Starts a tag
>&gt;Ends a tag
&&amp;Starts an entity such as &nbsp;
"&quot;Ends an attribute value

Tip: the HTML is safe to paste because your text is escaped, but always paste it into the HTML view of your editor, not the visual one, or you will see the tags as text.

Sources

Frequently asked questions

How do I convert text to HTML?

Paste your text and the HTML appears at once: each block separated by a blank line becomes a <p> paragraph, line breaks inside a block become <br>, lines starting with - or 1. become lists, and web addresses become links. Copy the code into your website's HTML editor, or download it as a complete web page.

What is the difference between <p> and <br>?

<p> marks a paragraph, a block of text with space above and below; <br> is a line break inside a paragraph, used for addresses, poems and short lines. Use a blank line in your text where you want a new paragraph, and a single line break where you only want a new line. Untick Keep line breaks to join the lines of each paragraph instead.

Why are < and & changed in the HTML?

Characters that mean something in HTML must be escaped to show as text: < becomes &lt;, > becomes &gt;, & becomes &amp; and " becomes &quot;. Without this, text like <b> or a stray & could break your page or, if it came from someone else, run code. The converter escapes every one, so "5 < 10 & 20 > 15" shows exactly as typed.

Can it convert Markdown to HTML?

Yes. Choose Markdown and write # for headings, **bold**, *italic*, ~~strikethrough~~, - for lists, - [ ] for task lists, > for quotes, backticks for code and [text](https://link) for links. Links with unsafe schemes such as javascript: are removed.

How do I paste the HTML into Blogger or WordPress?

In Blogger, switch the post editor from Compose view to HTML view and paste. In WordPress, add a Custom HTML block, or open the block's menu and choose Edit as HTML. Pasting HTML into the normal visual editor shows the code as text instead of formatting it.

Should links open in a new tab or use nofollow?

Links in your own content usually open in the same tab. Tick Open links in a new tab for references you want readers to keep your page open for; the tool then adds rel="noopener" for security. Tick nofollow for links you do not want to vouch for; Google treats nofollow as a hint, and recommends rel="sponsored" for paid or affiliate links.

How do I convert HTML back to plain text?

Choose HTML to text and paste the HTML. Tags, scripts and styles are removed, paragraphs and line breaks are kept, list items become bullets, links keep their address in brackets, and entities such as &amp; and &#8217; turn back into & and ’.

Advertisement