PLAIN TEXT, READY FOR YOUR PAGE

Text to HTML Converter

Turn notes, addresses, lists, and text files into escaped HTML. Choose the structure, check a safe preview, then copy the code or download a file. All conversion runs in your browser.

Choose your HTML format

Blank lines become paragraph boundaries. Text is always escaped.

Applies only to paragraph mode.

Preformatted mode always preserves spacing. Preserved tabs use four-column tab stops. Destination styles may change the appearance.

1. Add plain text

Up to 200,000 Unicode characters and 10,000 lines. Longer input is rejected, never cut off. Emoji may contain several Unicode characters.

Keyboard shortcut: Ctrl+Enter or Cmd+Enter.

Or open a local text file

One .txt or .text file. Loading replaces the input after validation. The file is read on your device with an eight-second read limit.

2. Use the HTML

Copy into an HTML/source editor. Pasting into a visual editor may display the tags as text.

Special characters are always escaped. Existing HTML, Markdown markers, URLs, and email addresses remain literal text.

Ready. Add text, choose a format, and convert.

How to convert text to HTML

  1. Paste your text or load a UTF-8 text file. Choose paragraphs for prose, line breaks for addresses, or preformatted text for spacing-sensitive content.
  2. Choose a fragment for an existing page or a complete document with its own title. Select any spacing or character-encoding options, then convert.
  3. Read the conversion report and preview. Copy the code into your CMS source view, or download the HTML. Convert again after changing the text or options.

Which structure should I choose?

Paragraphs turn groups of nonblank lines into <p> elements. Empty lines and lines containing only ordinary spaces or tabs separate paragraphs. Leading, trailing, and repeated blank separators are omitted. Single newlines become <br> or one space, as selected.

Line breaks wrap the text in a <div> and turn each newline into <br>. Preformatted uses <pre> and preserves spacing and blank lines, with soft wrapping. A final newline may not appear as an extra visible empty row.

List modes make every nonblank line one item. Existing bullets and numbers remain part of the item text. Remove them yourself if you do not want both the original marker and the generated list marker.

Why are angle brackets and ampersands encoded?

Escaping lets the browser display your text without treating it as HTML. For example:

Input:  A & B <example>
HTML:   <p>A &amp; B &lt;example&gt;</p>

Text such as &amp; stays literal, so its ampersand is escaped again. This is a plain-text converter, not an HTML sanitizer or a Markdown processor. It does not create links or load resources from your input.

What is normalized?

One initial byte order mark is removed. Windows CRLF and legacy CR newlines become LF; browser text fields may already do this when you paste. Other Unicode characters are preserved without case changes, accent normalization, or entity decoding. The paragraph and list rules above can remove blank separator lines. Ordinary HTML collapses spaces visually unless you enable spacing preservation.

Privacy and practical limits

The converter reads and processes text locally. It makes no conversion requests and creates no persistent storage. The shared site shell can load its standard assets and analytics. Copying and downloading happen only when you choose those actions.

Input is limited to 200,000 Unicode characters, 10,000 logical lines, and 1 MiB per imported file. A trailing newline adds one logical line. Files must be valid UTF-8. Unsupported control characters, lone surrogate code units, and Unicode noncharacters are rejected with a location. Preview is available up to 20,000 source characters and 1,000 lines; larger valid conversions still export in full.

The output contains text and simple HTML structure. It does not infer headings, nested lists, tables, links, or rich document formatting. Inline spacing styles may be removed by CMS or email sanitizers. Check the result in its destination, especially for right-to-left text, ASCII art, and email layouts.

Standards: HTML text structures, HTML character references, and UTF-8 encoding.