Strip HTML
Input
Mode
Text transformations
Output
Welcome to TextFormatter
Clean messy text fast & reliably.
Use this tool to keep only readable text.
Welcome to TextFormatter Clean messy text fast & reliably. Use this tool to keep only readable text.
API Call Example
curl -X POST "https://api.textformatter.pro/v1/format" \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
--data-binary @- <<'JSON'
{
"text": "<h1>Welcome to <em>TextFormatter</em></h1>\n<p>Clean <strong>messy</strong> text fast & reliably.</p>\n<style>.hidden { display:none; }</style>\n<script>console.log(\"ignore me\")</script>\n<p>Use this tool to keep only readable text.</p>",
"mode": "text",
"output": "text",
"options": {},
"transforms": {
"stripHtml": true,
"normalizeWhitespace": true
}
}
JSONResponse shape
{
"data": {
"output": "Plain text output",
"format": "text"
},
"meta": {
"wordsProcessed": 42
}
}Request payload
{
"text": "<h1>Welcome to <em>TextFormatter</em></h1>\n<p>Clean <strong>messy</strong> text fast & reliably.</p>\n<style>.hidden { display:none; }</style>\n<script>console.log(\"ignore me\")</script>\n<p>Use this tool to keep only readable text.</p>",
"mode": "text",
"output": "text",
"options": {},
"transforms": {
"stripHtml": true,
"normalizeWhitespace": true
}
}Don't have an API key yet?
Get one and start formatting thousands of words with no charges.
Plain Text
Web