Textnify

Text to HTML

Turn text from an email, a document or a note into HTML you can paste into a web page, a template or a content management system.

Your text stays in this browser tab. Nothing is uploaded, saved or logged.

How the Text to HTML works

Characters that have a special meaning in HTML are escaped first: & becomes &amp;, < and > become &lt; and &gt;, and quotes are escaped too. Anything that looks like a tag in your text is therefore displayed as text and never runs, so text containing code or angle brackets is safe to paste.

In paragraph mode, blocks of text separated by blank lines become <p> elements, and single line breaks inside a paragraph become <br> unless you turn that off. “One paragraph per line” makes a <p> for every non-empty line, and “One preformatted block” wraps everything in <pre>, which keeps spacing and line breaks exactly as typed.

“Turn web addresses into links” wraps http and https addresses in <a> elements, leaving trailing punctuation such as a full stop or a closing parenthesis outside the link. Other kinds of address are never linked. You can also add target and rel attributes, or wrap everything in a complete HTML page with a document type, a language, a character set and a title. The tool does not detect headings or lists; for that, write Markdown and use the Markdown to HTML converter.

How to use it

  1. Paste your plain text.
  2. Choose how paragraphs and line breaks should be handled, and whether to link web addresses.
  3. Copy the HTML, or turn on the complete-page option and download it as an .html file.

Example

The address becomes a link and the special characters are escaped.

Input

Meet us at https://example.com/events, 5 < 6 & more!
Second line of the same paragraph.

A new paragraph.

Result

<p>Meet us at <a href="https://example.com/events">https://example.com/events</a>, 5 &lt; 6 &amp; more!<br>
Second line of the same paragraph.</p>
<p>A new paragraph.</p>

Frequently asked questions

Are special characters escaped?

Yes. The characters &, <, >, double quotes and single quotes are always escaped, so the result displays your text exactly as typed and cannot inject markup into a page.

How is this different from Markdown to HTML?

This tool does not interpret any syntax: it only wraps your text in paragraphs and escapes it. Markdown to HTML understands headings, lists, emphasis, tables and links written in Markdown.

Can I use the result as a complete web page?

Yes. Turn on “Wrap in a complete HTML page” to get a document with a doctype, a language, a character set, a viewport tag and the title you enter.

Why was my address not turned into a link?

Only addresses starting with http:// or https:// are linked. An address such as www.example.com without a scheme is left as text, because the tool cannot know which scheme you intend.