LLM XML Tag Stripper

Remove or extract content from XML-style tags in Claude/LLM output.

Ad placeholder (leaderboard)

LLM responses are often littered with XML-style structure — <thinking>, <answer>, <context>, <scratchpad> and any custom tag your prompt asked for. This tool strips or extracts that structure so you get either clean user-facing text or just the inner content you actually want.

How it works

You paste a response and name the tags. The parser scans the text for matching <tag>...</tag> pairs, correctly matching nested opening and closing tags, and then applies your chosen action:

  • Strip tags only — keep the inner text, delete the angle-bracket markers.
  • Strip tags and contents — delete the whole block, including everything inside.
  • Extract contents — return only the inner text of matching tags, discarding everything else.

Everything runs in your browser. Nothing is uploaded, so confidential prompts stay private.

Tips and examples

A common workflow with Claude is to ask for <thinking> reasoning followed by an <answer>. To show only the answer to your users, set the action to Extract and the tag to answer. To hide the reasoning but keep everything else, set the action to Strip tags and contents and the tag to thinking. Leave the tag field blank to act on every tag the tool detects — handy for a quick cleanup pass before logging or displaying a completion.

Ad placeholder (rectangle)