Text cleaner
Text copied from a PDF breaks in the middle of sentences; text from Word brings curly quotes; text from a web page brings tags. Tick what to remove and get clean text back.
How it works
- Paste the messy text.
- Tick what to clean.
- Press Convert and copy the result.
How do I fix line breaks from a PDF?
Turn on Remove line breaks: every break becomes a single space, so paragraphs flow again.
What does Straighten quotes do?
It replaces curly quotes, long dashes, ellipsis characters and non-breaking spaces with their plain keyboard forms, which is what code and CSV files need.
Does Strip HTML keep the text?
Yes. Tags are removed, paragraphs and list items become line breaks, and scripts and style blocks are dropped with their content.
Use it from ChatGPT, Claude or your own agent
This tool is also a function an AI agent can call for you. It needs the same free account as this page, nothing else.
Fields
text(text, required): Textcollapse_spaces(true | false, optional): Collapse repeated spacestrim_lines(true | false, optional): Trim each lineremove_empty_lines(true | false, optional): Remove empty linesstraighten_quotes(true | false, optional): Straighten quotes and dashesstrip_html(true | false, optional): Strip HTML tagsremove_line_breaks(true | false, optional): Remove line breaks
A call that works
POST https://orkosi.com/api/v1/public/tools/text-cleaner/run
Authorization: Bearer <api_key>
{
"input": {
"text": "<p>Our “new” pricing — live today.</p>\n<p> Start free, upgrade later… </p>",
"strip_html": true,
"straighten_quotes": true
}
}Need an account? One request creates it and answers the key: POST https://orkosi.com/api/v1/public/signup. In Claude or ChatGPT, add the Orkosi connector and sign in: https://orkosi.com/api/v1/public/mcp.