Skip to content
Case Converter Online
en

Remove Text Formatting

Paste text full of tags, asterisks or hidden leftovers and get clean, readable words back. HTML, Markdown and BBCode are stripped in one go.

Choose what to clean
Characters
0
Words
0
Lines
0

Runs in your browser. Your text is never uploaded.

What this tool removes

Text gets formatting from wherever it was written. A web page wraps words in HTML tags. A README or chat message uses Markdown asterisks and hashes. Forums use BBCode in square brackets. Copying from Word, Google Docs or an email can bring no-break spaces, zero width characters and extra blank lines.

A note on what happens when you paste. The input box on this page is a plain text box, like any textarea. When you paste rich text from Word or a web page, your browser already drops bold, italics, fonts, sizes, colors and link styling before the text arrives. What it cannot drop is formatting that is written as characters: tags you copied as code, Markdown symbols, BBCode, entity codes such as &, and hidden spacing characters. That is the part this tool cleans.

How to use it

  1. Paste into Formatted text. A sample with HTML and Markdown is loaded so you can see it work.
  2. The Plain text box shows the cleaned result as you type.
  3. Choose what to remove. These are on by default:
    • Remove HTML tags
    • Remove Markdown
    • Remove BBCode
    • Fancy fonts to normal letters
    • Tidy spaces and blank lines
  4. Switch on Straighten curly quotes and dashes if you also want keyboard quotes and hyphens.
  5. Press Copy or Download. The note says how many characters of formatting were removed.

Examples

All results below were produced by this tool with its default settings. A ¶ marks a line break.

Formatted text Plain text
<p>We hit our goal &amp; shipped the <a href="https://example.com">new site</a>.</p> We hit our goal & shipped the new site.
## Next steps ¶ ¶ - **Fix** the _footer_- Read the [style guide](https://example.com/guide) Next steps ¶ ¶ Fix the footer ¶ Read the style guide
[b]Sale[/b] ends [url=https://example.com]Friday[/url] Sale ends Friday
Use **bold** and *italic* and plus a word in backticks Use bold and italic and code.
Tom &amp; Jerry &lt;3 Tom & Jerry <3
> Quoted line# Heading Quoted line ¶ Heading
snake_case_name and 2 * 3 * 4 stay as they are snake_case_name and 2 * 3 * 4 stay as they are

How it works

The tool runs a series of clean-up passes in a fixed order.

  1. Markdown goes first. Code fences, horizontal rules, table separator rows and link definitions are removed. Headings, quotes and bullets lose their marks. Images keep their alt text and links keep their label. Bold, italic, strike-through and inline code lose their symbols, but only when the symbols wrap text from the outside.
  2. HTML comes next. Comments, scripts and styles are removed whole. Block elements turn into line breaks so paragraphs stay apart, table cells turn into tabs, and every other tag is removed. Named and numbered character codes are decoded.
  3. BBCode tags in square brackets, such as [b], [url=…] and [quote], are removed while their text stays.
  4. Fancy fonts from font generators are mapped back to normal letters, and strike-through marks are removed.
  5. Tidying removes invisible characters, turns odd spaces into normal ones, removes spaces at the start and end of lines, and limits blank lines to one in a row.

Tips and limits

  • Lists lose their bullets. That is the point of removing formatting, but if you want to keep a list shape, add your own hyphens afterwards or use the line break remover to turn the list into a comma separated line.
  • A less-than sign followed by a letter, with a greater-than sign later on, looks like an HTML tag and is removed. If you are cleaning maths or code, switch off Remove HTML tags.
  • Indentation is removed when tidying is on. Switch off Tidy spaces and blank lines to keep it.
  • Links keep their words, not their addresses. If you need the URLs, copy them before cleaning.
  • Styled Unicode letters are converted here too. For more control over quotes, emoji, accents and hidden characters, use the plain text converter.

Other ways to do it

Word: select the text and press Ctrl+Space to clear character formatting, or use Paste Special and choose Unformatted Text when pasting. Neither removes tags or Markdown typed as characters.

Google Docs: press Ctrl+Shift+V to paste without formatting, or use Format, then Clear formatting (Ctrl+\). Again, symbols typed as text stay.

Mac: Cmd+Shift+Option+V pastes and matches the style of the surrounding text in many apps.

Code: in a browser, new DOMParser().parseFromString(html, 'text/html').body.textContent gives the text of an HTML string. In Python, BeautifulSoup’s get_text() does the same. Markdown usually needs a parser or a set of regular expressions like the ones this tool uses.

If the cleaned text still has double spaces or stray blank lines from the source, the whitespace remover gives you finer control over them.

Text Formatting Remover: questions and answers

How do I remove formatting from copied text?

Paste it into the Formatted text box. Bold, fonts, colors and links are dropped the moment you paste, because the box only holds plain text. The tool then removes any HTML tags, Markdown symbols and BBCode that came along, and tidies the spaces. Copy the result from the Plain text box.

Can it remove HTML tags and keep the text?

Yes. With Remove HTML tags on, every tag is removed and only the words between them stay. Block tags such as p, div, li and h2 become line breaks, table cells become tabs, and script and style blocks are removed with their contents. Codes such as &amp; and &lt; are turned back into & and <.

How do I remove Markdown formatting?

Leave Remove Markdown on. Heading marks (#), bold and italic asterisks and underscores, backticks, quote marks (>), list bullets, link brackets and table pipes are removed. Links keep their text and lose the address.

Will it break words with underscores, like snake_case?

No. Underscores are only treated as italic marks when they wrap a word from the outside, as in _footer_. A name such as snake_case_name stays exactly as it is, and so does maths such as 2 * 3 * 4.

More text tools

See all tools