Skip to content
OddsockLocal
Local
Source text

Formatting

5 wordsRuns in this browser. Nothing is uploaded.

How to use

  1. Paste the HTML fragment.
  2. Leave the operation on strip HTML.
  3. Read the lines. List items and paragraphs are separated. Links lost their addresses.
  4. Copy the plain text. Run the whitespace visualizer if a non-breaking space is still hiding.

What is Strip HTML tags?

HTML in a paste is markup you can see and text you wanted. This page parses the fragment, throws away script, style, template, and noscript, and inserts a newline after breaks, paragraphs, list items, divisions, headings, and table rows. The remaining text is what you get. “<b>A &amp; B</b>” becomes “A & B”. The entity is decoded. The tag is gone. The attribute on the tag is gone, even if it contained words.

Read more

Structure becomes lines, not spaces. A div of “Odd socks”, then a list of “one” and “two”, becomes three lines: Odd socks, one, two. A <br> between “socks” and “in the dryer.” becomes a newline, so you get “Odd socks” and “in the dryer.” A non-breaking space entity becomes a real non-breaking space, which is not the same character as a normal space.

Plain text with no tags is unchanged. “Odd socks in the dryer.” has nothing to strip. This is not a Markdown conversion. You do not get headings as # or links as [label](url). The address on an <a> is discarded with the tag. If you needed Markdown, use HTML to Markdown.

Use cases

  • A writer pulling the words out of a CMS export.
  • A developer removing tags from an error page before pasting it into a ticket.
  • A researcher decoding &amp; and &nbsp; in a scraped paragraph.
  • A student turning a simple HTML list into one item per line.
  • Someone who needs to confirm that a <script> block did not leak into the text.

A bold phrase and a two-item list

<div>Odd&nbsp;socks</div><ul><li>one</li><li>two</li></ul>

Odd socks, with a non-breaking space between the words, then a new line “one”, then a new line “two”. The tags are gone. The entity is decoded.

Why use Oddsock

Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.

Related tools

Using this tool

Yes. &amp; becomes &. &nbsp; becomes a non-breaking space, which still looks like a gap and is a different character from an ordinary space.