{
  "slug": "rtf-to-text",
  "name": "gizza-ai/rtf-to-text",
  "version": "0.1.0",
  "title": "RTF to Text — Convert Rich Text Format to Plain Text — gizza.ai",
  "description": "Convert RTF (Rich Text Format) markup to clean plain text in your browser. Strips control words, tables, and formatting; decodes Unicode and hex escapes. Free, private.",
  "tags": [
    "rtf to text",
    "rtf to txt",
    "convert rtf",
    "rich text format",
    "strip rtf",
    "rtf converter",
    "rtf to plain text",
    "extract text from rtf",
    "rtf parser"
  ],
  "category": "text",
  "urls": {
    "page": "https://gizza.ai/tools/rtf-to-text/",
    "markdown": "https://gizza.ai/tools/rtf-to-text/index.md",
    "descriptor": "https://gizza.ai/tools/rtf-to-text/tool.json",
    "deep_link_example": "https://gizza.ai/tools/rtf-to-text/?rtf=%7B%5Crtf1%5Cansi%20Hello%2C%20%5Cb%20world%5Cb0%20%21%5Cpar%7D&line_breaks=preserve"
  },
  "cli": "gizza tool rtf-to-text '{\\rtf1\\ansi Hello, \\b world\\b0 !\\par}'",
  "tool": {
    "description": "Convert an RTF (Rich Text Format) document to plain text. Pass the raw RTF markup — the {\\rtf … } source — as 'rtf'. Control words (\\b, \\f0, \\fs24, …), font/color tables, stylesheets, metadata, pictures, and \\* ignorable destinations are stripped, leaving only the readable text. \\par/\\line/\\sect become newlines, \\tab/\\cell become tabs, and \\'hh (Windows-1252) and \\uN Unicode escapes are decoded so accents, smart quotes, the euro sign, emoji, and non-Latin scripts survive. line_breaks='preserve' (default) keeps the paragraph layout; line_breaks='collapse' flattens everything to one space-separated line. Returns an error if the input does not begin with {\\rtf.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "line_breaks": {
          "default": "preserve",
          "description": "How to render paragraph and line breaks. 'preserve' (default) turns \\par/\\line/\\sect into newlines and \\tab/\\cell into tabs, keeping the document's layout. 'collapse' flattens every run of whitespace to a single space, producing one clean line — useful for search indexing or feeding the text to an LLM.",
          "enum": [
            "preserve",
            "collapse"
          ],
          "type": "string"
        },
        "rtf": {
          "description": "The RTF document source — the raw {\\rtf … } markup (as you'd see if you opened a .rtf file in a text editor). Control words, groups, and formatting are stripped; the visible text is returned.",
          "type": "string"
        }
      },
      "required": [
        "rtf"
      ],
      "type": "object"
    }
  }
}