RTF to TXT
Nothing you choose here leaves your browser, and nothing is downloaded to make it work. An RTF is plain text with control words in it, so there is nothing to unzip and no library to fetch.
The words, with the structure that survives without markup.
Headings on their own lines, list bullets kept, and the character encoding handled properly — which is most of the work. An RTF writes ordinary accented letters as bytes in a code page, usually windows-1252, and anything beyond that as \u233 ?: a number followed by a fallback character for readers too old to understand. Print the fallback as well and every accented word gains a stray question mark, which is exactly what a lot of converters do.
What RTF is, and why it needs no library
Rich Text Format is text with control words in it:
\b starts bold, \par ends a paragraph, and
braces group things so that formatting inside a group stays inside it.
Microsoft published it in 1987 and stopped developing it in 2008, and it
is still what a great deal of software exports when it wants formatted
text that everything can open. Open one in a text editor and you can read
it.
What makes it harder than it looks is that a lot of the
file is not content — the font table, the colour table, the list
definitions — and a group beginning {\*\ means
“ignore this entirely if you do not understand it”. A reader
that does not honour that marker prints list templates into the middle of
your document. The font table, though, has to be read even though it is
not content: it is the only place that says which font number is
monospaced, and that is the only way code is marked in an RTF.
How it is checked, in both directions
Against pandoc, which reads RTF and writes it. So the reader here is measured against pandoc's reading of a file pandoc wrote, and the writer is measured by handing its output to pandoc and asking what pandoc reads back. That second half found two real faults that no round trip against itself could have: a Unicode escape written in a form that is legal and that pandoc misreads, and a numbered list that no reader can tell is numbered unless the file also carries a list table.
What it will not do
It will not give you back a quotation as a quotation. That is the format, not the tool: an RTF stores a quotation as a paragraph with a bigger left indent, and stores an indented paragraph as a paragraph with a bigger left indent. Nothing in the file tells them apart, and pandoc reads them the same way.
It does not open .doc, which is a different thing entirely
— a compound binary document rather than text — and it says so
rather than producing nonsense. It does not carry tracked changes,
comments or footnotes. And there is no RTF to PDF here,
for the same reason there is none anywhere on this site: that is
typesetting, not conversion, and something would have to choose your page
size, your margins and where every break falls.
Where to go next
- RTF to HTML — another way through RTF
- RTF to Markdown — another way through RTF
- HTML to RTF — another way through RTF