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

  1. Paste the messy text.
  2. Tick what to clean.
  3. 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): Text
  • collapse_spaces (true | false, optional): Collapse repeated spaces
  • trim_lines (true | false, optional): Trim each line
  • remove_empty_lines (true | false, optional): Remove empty lines
  • straighten_quotes (true | false, optional): Straighten quotes and dashes
  • strip_html (true | false, optional): Strip HTML tags
  • remove_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.

This tool as Markdown · Connect an AI assistant