HTML to Plain Text Converter

Paste HTML source or rich text from a web page or email and get readable plain text with paragraphs, bullets, table rows and link addresses in place.

Läuft in Ihrem Browser. Ihre Dateien verlassen nie Ihr Gerät. So prüfen Sie es

…

So geht's

  1. 1
    Add the HTML

    Paste source code into the HTML box, open an .html file, or click the rich text box and paste copied web or email content.

  2. 2
    Pick the link style

    Choose Text (URL), Markdown, numbered footnotes or link text only.

  3. 3
    Set headings and tables

    Choose plain, capitals, underlined or # headings, and tab, pipe or line-per-cell tables.

  4. 4
    Clean up

    Keep or drop hidden elements, squeeze empty lines and set a wrap column if the text goes into email.

  5. 5
    Check the result

    Read the plain text and the counts of tags removed and entities decoded.

  6. 6
    Copy or download

    Copy the text, download it as .txt, or convert a batch of files into a ZIP.

Über dieses Tool

Copying text out of a web page, a newsletter or a content management system usually brings markup with it: angle-bracket tags,   and ’ codes, inline styles, tracking scripts and invisible spans. Removing tags with a simple find and replace leaves one long block of words, because the line breaks lived in the tags. This converter reads the HTML the way a browser lays it out instead. Block elements such as p, div, section and blockquote become separate paragraphs with a blank line between them. Headings stay on their own line and can be written plain, in capitals, underlined with = and - signs, or as Markdown # marks. Unordered lists become bullet lines with the bullet you choose, ordered lists keep their numbers (including a custom start number), and nested lists are indented by three spaces per level. Table rows become one line each, with cells separated by tabs so the result pastes straight into a spreadsheet, or by pipes for a readable text table. Pre blocks keep their spacing exactly, br tags become line breaks and hr becomes a divider. Links can be written as the text followed by the address in brackets, as Markdown links, as numbered footnotes collected at the end, or as the link text alone. Named, decimal and hexadecimal character references are decoded into real characters, so é becomes é and € becomes €. Script, style, template, svg and noscript blocks are dropped completely, and elements marked hidden, aria-hidden or display:none can be left out too. You can also paste formatted content directly into the rich text box, convert several .html files in one go into a ZIP of .txt files, and wrap the output at a fixed column for email.

Choosing the link style

Text (URL) is the most readable choice for email and documents, because the reader sees both the words and the address. Link text that is already the same as the address is not repeated. Markdown style is best when the text goes into a README, a wiki or a chat app that renders Markdown. Numbered footnotes keep sentences short and list every address once at the bottom, which suits printed handouts. Link text only is for when the addresses do not matter, such as cleaning article text for reading aloud. Links to anchors on the same page (#top) and javascript: links are never written out.

Tables and spreadsheets

With the tab-separated option, copy the result and paste it into Excel, Google Sheets or Numbers: each table row lands in its own row and each cell in its own column. Merged cells (colspan and rowspan) are not expanded, so a heavily merged layout table may need tidying afterwards.

Pasting from Word and email

Word, Outlook and Gmail put HTML on the clipboard together with the plain copy. The rich text box reads that HTML, so headings, bullets and tables survive even though they would be lost in a normal paste into a text editor.

Limits

This is not a full browser: CSS is not applied, so text hidden only by a class in a stylesheet still appears, and a layout that shows columns side by side with CSS becomes a sequence of paragraphs. Images have no text unless you turn on alt text. Content that a page loads later with JavaScript is not in the saved HTML and cannot be recovered here. Everything runs in your browser and nothing is uploaded.

Rechenbeispiel

A 14 KB newsletter saved from an email program has 412 tags, 38 character references, one style block and two tracking scripts. With links as Text (URL), headings underlined and tables tab-separated, the converter keeps the title, three headings, a five-item bullet list, a two-column event table of four rows and nine links, and produces 1,230 words of plain text in 46 lines. The scripts and the 1 x 1 pixel tracking image are gone, and 38 entities such as — and   are now real dashes and spaces.

Kurzinfos

Häufig gestellte Fragen

Is this the same as stripping tags with a regular expression?

No. A plain tag strip joins everything into one block and leaves entities as codes. This converter knows which elements start a new paragraph, which are list items and which are table cells, so the structure of the page survives as plain text.

Can I convert many HTML files at once?

Yes. Use Convert many files (ZIP), select any number of .html or .htm files, and you get one ZIP with a .txt file for each, all converted with the options currently set.

What happens to images?

They are dropped by default. Turn on Show image alt text and each image with alt text appears as [alt text] in the flow, which is useful for accessibility checks and for keeping chart titles.

Why do I still see text that is hidden on the web page?

Text hidden with the hidden attribute, aria-hidden or an inline display:none style is removed. Text hidden by a class in an external stylesheet cannot be detected without the stylesheet, so it stays in the output.

Does it keep accented letters and non-Latin scripts?

Yes. The text stays in Unicode, so Arabic, Bengali, Chinese, Cyrillic and every other script come through unchanged, and named references such as Ö become the right letters.

Is my HTML sent anywhere?

No. Parsing happens in your browser tab. Files you open are read locally and the converted text is created on your device.

Völlig kostenlosKeine Kosten, keine Anmeldung
Dateien bleiben privatAlles läuft in Ihrem Browser
Einfach in Ihrer SpracheIn vielen Sprachen verfügbar