Free RTF sample, test and dummy files
A text-based document format from Microsoft that predates DOCX and is still accepted by most word processors. Download valid RTF test files in 19 exact sizes, from 1 KB to 100 MB, each with a checksum. Or create one of any size up to 1 GB.
- Extension
- .rtf
- MIME type
- application/rtf
- Kind
- Text
- Category
- Documents
Create a RTF file of any size
Choose any size from 150 bytes to 1 GB. The file is made in your browser, so nothing is downloaded from our server. Smaller files usually finish quickly; generation time depends on your device and format. Larger ones are streamed straight into your downloads list in browsers that support it (current Chrome, Edge and Firefox on computers and Android); elsewhere, such as Safari and every browser on iPhone and iPad, the largest size is lower and is shown below.
RTF files by size
Every file below is a valid Rich Text Format file of exactly the stated size. Open a file's page for its checksum and contents, and to preview it in your browser before downloading.
| File | Size | Contents | Download |
|---|---|---|---|
| 1 KB RTF samplesample-rtf-1kb.rtf | 1 KB1,024 bytes | Sections: 1 | Download RTF |
| 5 KB RTF samplesample-rtf-5kb.rtf | 5 KB5,120 bytes | Sections: 12 | Download RTF |
| 10 KB RTF samplesample-rtf-10kb.rtf | 10 KB10,240 bytes | Sections: 27 | Download RTF |
| 25 KB RTF samplesample-rtf-25kb.rtf | 25 KB25,600 bytes | Sections: 70 | Download RTF |
| 50 KB RTF samplesample-rtf-50kb.rtf | 50 KB51,200 bytes | Sections: 142 | Download RTF |
| 100 KB RTF samplesample-rtf-100kb.rtf | 100 KB102,400 bytes | Sections: 285 | Download RTF |
| 200 KB RTF samplesample-rtf-200kb.rtf | 200 KB204,800 bytes | Sections: 571 | Download RTF |
| 500 KB RTF samplesample-rtf-500kb.rtf | 500 KB512,000 bytes | Sections: 1,432 | Download RTF |
| 1 MB RTF samplesample-rtf-1mb.rtf | 1 MB1,048,576 bytes | Sections: 2,935 | Download RTF |
| 2 MB RTF samplesample-rtf-2mb.rtf | 2 MB2,097,152 bytes | Sections: 5,867 | Download RTF |
| 3 MB RTF samplesample-rtf-3mb.rtf | 3 MB3,145,728 bytes | Sections: 8,801 | Download RTF |
| 5 MB RTF samplesample-rtf-5mb.rtf | 5 MB5,242,880 bytes | Sections: 14,652 | Download RTF |
| 10 MB RTF samplesample-rtf-10mb.rtf | 10 MB10,485,760 bytes | Sections: 29,277 | Download RTF |
| 15 MB RTF samplesample-rtf-15mb.rtf | 15 MB15,728,640 bytes | Sections: 43,898 | Download RTF |
| 20 MB RTF samplesample-rtf-20mb.rtf | 20 MB20,971,520 bytes | Sections: 58,525 | Download RTF |
| 25 MB RTF samplesample-rtf-25mb.rtf | 25 MB26,214,400 bytes | Sections: 73,142 | Download RTF |
| 30 MB RTF samplesample-rtf-30mb.rtf | 30 MB31,457,280 bytes | Sections: 87,771 | Download RTF |
| 50 MB RTF samplesample-rtf-50mb.rtf | 50 MB52,428,800 bytes | Sections: 146,100 | Download RTF |
| 100 MB RTF samplesample-rtf-100mb.rtf | 100 MB104,857,600 bytes | Sections: 291,894 | Download RTF |
What is an RTF file?
RTF stores formatted text as plain ASCII, using backslash control words such as \b for bold and braces for grouping. It was designed for exchanging documents between different word processors.
Because it is readable text, RTF is easy to generate from code, but it can also carry embedded objects, which is why security tools treat it with care.
How to recognise an RTF file
Software recognises an RTF file by its file signature: fixed bytes at the start of the file, also called magic bytes or a magic number.
| Extension | .rtf |
|---|---|
| MIME type | application/rtf |
| Also seen as | text/rtf |
| Latest version | 1.9.1 (2008) |
| Encoding | 7-bit ASCII with escapes for other characters |
| Structure | Nested groups in braces with control words |
| Can contain | Formatted text, tables, images, embedded objects |
What to test for
These are the behaviours that most often go wrong when software handles RTF files.
- Two MIME types are in use, application/rtf and text/rtf, and allow-lists should recognise both.
- RTF readers must skip groups they do not understand; a parser that fails on unknown control words is not conformant.
Strengths of RTF
- Carries basic formatting between almost any two word processors.
- Plain ASCII, so it survives systems that mangle binary files.
Limitations of RTF
- Much larger than DOCX for the same document, especially with images.
- No longer developed, and inconsistently supported beyond basic formatting.
Typical uses of RTF test files
- Testing legacy document import
- Checking converters and text extraction
- Verifying upload filters that allow or block RTF
Software that opens RTF
- Microsoft Word and WordPad
- Apple TextEdit
- LibreOffice Writer
- Google Docs (import)
Related
RTF sample files: questions
- Do the RTF samples contain embedded objects?
- No. They contain only formatted text: bold headings and paragraphs in a single font.
- What is the MIME type of an RTF file?
- The MIME type is application/rtf. You will also meet text/rtf in practice. The file extension is .rtf.
- Is a sample RTF file the same as a dummy or example RTF file?
- Yes. Sample, test, dummy and example RTF files are different names for the same thing: an RTF file with known contents that stands in for a real one. Any file on this page will do wherever a tutorial or a test plan asks for a dummy RTF file.