striprtf
A simple library to convert rtf to text
Decision gist · record as of 2026-08-14
Yes. striprtf is a focused, dependency-free tool for a specific problem (RTF-to-text conversion) with active maintenance, permissive licensing, and no known vulnerabilities. Install it if you need to process RTF files; skip it if your documents are already in plain text or modern formats.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with no runtime dependencies.
- Actively maintained with recent commits and a stable release history since 2018.
- Supports current Python versions (3.8+).
License · maintenance · safety
BSD-3-Clause (permissive) — BSD-3-Clause permissive license allows commercial and private use with minimal restrictions, requiring only license and copyright notice preservation.
last release 2026-04-27 (109 days) · last repo commit 2026-06-19 · 117 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 7,543,370 downloads/mo, #1,723 on PyPI
Alternatives
Verify before relying
pip install striprtf
from striprtf.striprtf import rtf_to_text
rtf = "some rtf encoded string"
text = rtf_to_text(rtf)
print(text)- Whether encoding parameter behavior differs meaningfully across Python versions or RTF variants
- Performance characteristics on large RTF files or batch processing scenarios
- Completeness of RTF standard coverage (which RTF features are preserved vs. stripped)
What it is and what it does
striprtf is a lightweight Python library that extracts plain text from Rich Text Format (RTF) documents by parsing and removing RTF control codes and formatting directives. It solves the problem of processing medical and other documents that are commonly stored in RTF format but need to be converted to plain text for further analysis or storage.
The library provides a single primary function, rtf_to_text(), which accepts an RTF-encoded string and returns plain text. It supports customizable character encoding (defaulting to cp1252) and error handling modes, allowing users to work around encoding issues that may arise from malformed or non-standard RTF input. With no external runtime dependencies, it installs and runs with minimal friction.
Use it for
- Extract text from medical documents stored in RTF format for downstream NLP or data analysis
- Batch convert legacy RTF files to plain text for archival or migration to modern formats
- Parse RTF content in data pipelines where only plain text is needed, discarding formatting
- Handle encoding edge cases in RTF files using custom encoding parameters or error modes
- Integrate RTF-to-text conversion into document processing workflows without heavy dependencies
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
striprtf is a focused, dependency-free tool for a specific problem (RTF-to-text conversion) with active maintenance, permissive licensing, and no known vulnerabilities. Install it if you need to process RTF files; skip it if your documents are already in plain text or modern formats.
Install
striprtf on PyPI
Before you install
Low install friction with no runtime dependencies. Actively maintained with recent commits and a stable release history since 2018. Supports current Python versions (3.8+).
License in practice
BSD-3-Clause permissive license allows commercial and private use with minimal restrictions, requiring only license and copyright notice preservation.
Quickstart
pip install striprtf
from striprtf.striprtf import rtf_to_text
rtf = "some rtf encoded string"
text = rtf_to_text(rtf)
print(text)
Verify before relying
- Whether encoding parameter behavior differs meaningfully across Python versions or RTF variants
- Performance characteristics on large RTF files or batch processing scenarios
- Completeness of RTF standard coverage (which RTF features are preserved vs. stripped)
Package facts
| License | BSD-3-Clause permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 109 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 7,543,370 / month, #1,723 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: BSD License |
Evidence: striprtf-0.0.32-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “rtf to text conversion”
- striprtfConverts Rich Text Format (RTF) files to plain text, stripping…
- pyth3Converts marked-up text between formats including plain text, XHTML,…
- compressed-rtfCompresses and decompresses Rich Text Format (RTF) data using the…
Give your agent the search over MCP, or paste the wish link into any chat.
More Text Processing packages
A drop-in replacement for Python's standard `re` module that adds advanced regex features like nested sets, fuzzy matching, lookaround in conditionals, and full Unicode case-folding while maintaining backward compatibility.
pyparsing provides a library for building text parsers directly in Python code using composable grammar classes, handling quoted strings, whitespace variation, and embedded comments without regex or lex/yacc.
Install it if you need to parse text or define grammars programmatically.
fonttools manipulates font files in multiple formats (TrueType, OpenType, AFM, Type 1, Mac-specific) and includes TTX, a tool to convert fonts to and from XML text format.
Install it if you need to read, write, or manipulate fonts programmatically or via the TTX command-line tool.
Docutils converts plaintext documentation in reStructuredText format into multiple output formats including HTML, XML, and LaTeX using a modular processing system.
RapidFuzz provides fast fuzzy string matching using Levenshtein Distance and related metrics, implemented mostly in C++ with Python bindings for rapid similarity scoring and approximate string matching.
Install it if you need fuzzy string matching; it's a solid replacement for FuzzyWuzzy with better licensing and performance.
tinycss2 parses CSS strings into token and block objects, and generates CSS strings from those objects, following the CSS Syntax Level 3 specification without enforcing specific properties or values.
Install it if your project requires CSS tokenization or syntax manipulation.
See also PyRTF3 · pyth3 · RTFDE · rtfparse · compressed-rtf · strip-markdown · mdit-plain · rtfunicode · mbstrdecoder · rst2ansi