RTF
RTF document files for import testing
Test RTF imports, rich-text parsing, encoding, embedded objects, and MIME detection with signature checks and local text workflows.
Verified . The local inspector checks the {\rtf marker; group nesting and control-word parsing are checked against real RTF inputs, while text baselines come from the TXT generator.
Identify RTF files
- Magic signature
7B 5C 72 74 66 ({\rtf)- Registered MIME
text/rtf
RTF is plain text with backslash control words and brace groups, not a binary container. Parsers must handle nested groups, destination control words, and binary blobs, so a valid header does not prove the whole document parses.
Choosing RTF
RTF is a text-based rich-text format readable by Word, LibreOffice, and many editors, with dialects differing on control words and embedded objects. The local generator does not produce RTF files, so create RTF text locally, validate it with the file inspector, and use the TXT generator for deterministic text baselines.
Validate the {\rtf header instead of trusting the extension.
Check embedded images and objects separately from text content.
Test charset and ansicpg declarations before assuming encoding safety.
Common test cases
- Rich-text import validation
- Encoding and control-word tests
- Upload and MIME validation
Invalid and boundary cases
- Unclosed brace groups with a valid header
- Embedded hex blobs misread as text
- Unknown control words silently dropped
RTF fixture matrix
This format is generated locally in the browser and does not receive a permanent SEO URL.
Open the local generator