Markdown to plain text
Remove Markdown formatting and keep the readable text: headings, emphasis, links, images, lists and code.
Input
Result
Fill in the input and press Run.
Your input is processed in memory and then discarded. It is not stored or logged. Even so, don't paste live passwords or keys into any online tool.
Use it from code or an agent
curl -s https://setget.net/v1/tools/strip-markdown \
-H 'Content-Type: application/json' \
-d '{"input":{"text":"# Title\n\nSome **bold** and _italic_ text with a [link](https://example.com) and `code`.\n\n- item one\n- item two\n\n"}}'
import json, urllib.request
body = {'input': {'text': '# Title\n\nSome **bold** and _italic_ text with a [link](https://example.com) and `code`.\n\n- item one\n- item two\n\n'}}
request = urllib.request.Request("https://setget.net/v1/tools/strip-markdown", json.dumps(body).encode(),
{"Content-Type": "application/json"})
print(json.load(urllib.request.urlopen(request))["result"])
const response = await fetch("https://setget.net/v1/tools/strip-markdown", {
method: "POST",
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"input":{"text":"# Title\n\nSome **bold** and _italic_ text with a [link](https://example.com) and `code`.\n\n- item one\n- item two\n\n"}}),
});
console.log((await response.json()).result);
Tool: run_tool
Arguments:
{
"slug": "strip-markdown",
"input": {
"text": "# Title\n\nSome **bold** and _italic_ text with a [link](https://example.com) and `code`.\n\n- item one\n- item two\n\n"
}
}
{
"input": {
"text": "# Title\n\nSome **bold** and _italic_ text with a [link](https://example.com) and `code`.\n\n- item one\n- item two\n\n"
}
}
Endpoint: POST /v1/tools/strip-markdown. Over MCP: run_tool with slug: "strip-markdown".
Machine-readable: input schema, Markdown. Connect an agent.
Inputs
| Name | Type | Required | What it does |
|---|---|---|---|
text |
string | yes | The Markdown to convert. |
Examples
Input
{
"text": "# Title\n\nSome **bold** and _italic_ text with a [link](https://example.com) and `code`.\n\n- item one\n- item two\n\n"
}Result
{
"text": "Title\n\nSome bold and italic text with a link and code.\n\nitem one\nitem two\n\nlogo"
}Quotes, code fences and numbered lists
Input
{
"text": "> Quoted **text**\n\n```python\nprint(\"**not bold**\")\n```\n\n1. First\n2. Second"
}Result
{
"text": "Quoted text\n\nprint(\"**not bold**\")\n\n1. First\n2. Second"
}Questions
- What happens to links and images?
- A link keeps its text and loses its address. An image is replaced by its alt text.
- Is code changed?
- No. Text inside code fences and backticks is kept exactly; only the fence lines and backticks are removed.
- What happens to lists and tables?
- Bullet markers are removed and numbered items keep their numbers. Table rows stay as they are, without the row of dashes under the header.
Related tools
- HTML to plain textExtract readable plain text from HTML: headings, paragraphs, list bullets and table rows, without scripts or menus.
html-to-text - Wrap and indent textHard-wrap text to a line width, add or remove indentation, and put a prefix such as "> " on every line.
wrap-indent - Word and character counterCount characters, words, lines, sentences, paragraphs and UTF-8 bytes in a text.
text-count - Apply a patchApply a unified diff to a text and get the patched result, with clear errors when a hunk does not fit.
patch-apply - Case converterConvert text between lower, UPPER, Title, Sentence, camelCase, PascalCase, snake_case, kebab-case and more.
case-convert - Escape and unescape textEscape or unescape text for HTML, URLs, JSON strings, shell commands, regular expressions and CSV fields.
escape-unescape