Plain Text vs Rich Text: What Formatting-Agnostic Comparison Ignores

What rich text means, how it differs from plain text, and what a formatting-agnostic comparison ignores, plus the character changes it still catches.

Two documents can carry the same words and still look different: one has bold headings and a colored warning, the other is bare text. A formatting-agnostic comparison exists to answer one narrow question: are the words and characters the same, regardless of how they are styled? To use it well, you need to know what rich text adds on top of plain text, which of those additions the comparison sets aside, and which differences it still reports.

What rich text means

Plain text is only a sequence of characters: letters, digits, punctuation, spaces and line breaks. Nothing in the data says that a word is bold, that a line is a heading, or which typeface to use. Any styling you see comes from the program displaying it.

Rich text stores the same characters plus formatting information alongside them: emphasis such as bold, italic and underline; font family and size; color and highlighting; alignment, indentation and list structure; and often links, tables and embedded images. The formatting lives in markup, styles or document structure, separate from the characters themselves.

The phrase is used in two senses. Loosely, "rich text" means any formatted text, such as a word-processor document, an email composed with formatting, or styled content on a web page. Specifically, Rich Text Format (RTF, usually saved with the .rtf extension) is a document file format developed by Microsoft that encodes formatting as control words mixed into readable text. When someone searches for the meaning of rich text format, either sense may be intended; the comparison principles below apply to both.

What a formatting-agnostic comparison changes and what it leaves alone

A formatting-agnostic comparison does not rewrite either document. It extracts the text content from each version, discards the formatting layer for the purpose of the comparison, and then compares the remaining character sequences. Your source files keep their formatting; only the comparison view treats it as irrelevant.

Exactly which properties count as formatting is decided by each tool and its settings, so treat the following as the typical scope rather than a guarantee. Check the options of the specific tool you use, because some settings are offered separately or not at all.

  • Character styling: bold, italic, underline, strikethrough
  • Font family, font size and text color
  • Highlighting and background color
  • Paragraph styles, alignment and indentation
  • Markup syntax itself, such as HTML tags or RTF control words, when the tool compares rendered or extracted text rather than source code
  • Sometimes link targets, table borders or list numbering style, depending on how the tool extracts text

Differences that are characters, not formatting

Some changes look like styling but are stored as different characters. A formatting-agnostic comparison works on characters, so it will normally report these as real differences:

  • Unicode styled letters: text produced by so-called font generators often swaps ordinary letters for look-alike characters, such as those in the Mathematical Alphanumeric Symbols block. "𝐅𝐫𝐢𝐝𝐚𝐲" in those characters is not the word "Friday" in bold; it is a different set of code points, so the comparison sees a change.
  • Typographic substitutions: curly quotes versus straight quotes, an en dash or em dash versus a hyphen, and an ellipsis character versus three periods.
  • Invisible characters: non-breaking spaces, tabs versus spaces, and zero-width characters that some editors insert or preserve.
  • Case and whitespace: these are characters too. Many tools offer separate "ignore case" or "ignore whitespace" options, but those are distinct from ignoring formatting.
  • Character-order reversal: reversing a string changes the stored order of characters, so a reversed line differs from the original.

By contrast, effects applied purely through presentation do not change the stored characters. Text flipped or mirrored with CSS transforms, or styled with a display font, keeps its original characters underneath, so a comparison that reads the text content treats it as unchanged. Bidirectional text works similarly: Arabic or Hebrew mixed with English is stored in logical (reading) order and only rearranged visually on screen, so the comparison checks the stored order, not the left-to-right appearance you see.

Plain text vs rich text: which representation suits your comparison

The choice usually comes down to whether formatting is part of what you need to verify. The table compares the two representations, plus Unicode styled characters because they are often mistaken for formatting, against the same criteria.

Criterion | Plain text | Rich text | Unicode styled characters
What is stored | Characters only | Characters plus separate formatting data | Substitute characters that resemble styled letters
Visible appearance | Set entirely by the viewer | Carried with the document | Carried by the characters themselves, if a font has the glyphs
Editability | Edit anywhere | Needs an editor that understands the format | Editable, but the letters are not ordinary letters
Reversible to ordinary text | Already ordinary text | Yes, by stripping formatting | Only by mapping each character back
Treatment in a formatting-agnostic comparison | Compared as is | Formatting ignored, characters compared | Reported as different from the ordinary word
Search and spell-check | Work normally | Work on the underlying text | Often fail to match the ordinary word

The following example is illustrative, not output observed from a specific tool. It uses the same sentence in three forms to show how a formatting-agnostic comparison would be expected to classify each pair.

Version A (plain text):      Ship by Friday
Version B (rich text):       Ship by **Friday**   <- bold applied as formatting
Version C (Unicode styled):  Ship by 𝐅𝐫𝐢𝐝𝐚𝐲

A vs B, formatting ignored:  no difference expected
A vs C, formatting ignored:  difference expected on the last word
  • Compare as plain text, or with formatting ignored, when you are checking wording: contract clauses, translations, copy pasted between systems, or content exported from one editor and imported into another where styling was expected to change.
  • Keep formatting in the comparison when styling carries meaning, such as a bolded legal obligation, struck-through deleted terms, or color-coded status labels. Ignoring formatting there can hide a substantive change.
  • Normalize characters first, or enable whatever normalization options your tool provides, when you suspect typographic substitutions or styled Unicode letters and want them treated as equivalent. Confirm what the option actually does before relying on it.

Will the result stay readable and usable?

A comparison result is only useful if you can carry the conclusion, and sometimes the text, to where you need it. Several practical limits apply.

Copy and paste: when rich text is pasted into a plain-text field, the formatting is generally dropped while the characters remain. Pasting into a rich editor may keep, partially keep or restyle the formatting depending on the source and destination programs, so a formatting-agnostic comparison is a reasonable way to confirm that the words survived a transfer. Unicode styled characters behave differently: they are characters, so they survive pasting into plain-text fields, but they still will not match ordinary words.

Rendering: styled Unicode characters depend on the viewing device having a font that contains them. Where a glyph is missing, readers may see empty boxes or substitute symbols. Real formatting does not have this problem because the underlying letters are ordinary.

Accessibility: assistive technologies may read styled Unicode letters as individual symbols, by their character names, or skip them, depending on the screen reader and its settings, which makes such text harder or impossible to follow by ear. Genuine formatting keeps the words intact for screen readers, though whether emphasis itself is announced also varies by product and configuration. For anything people must read reliably, use real formatting or plain text rather than look-alike characters.

Sensitive input: if the comparison runs on an online service, pasting text sends it to that service, where it may be logged or retained. For contracts, personal data or unreleased material, check the provider's data-handling terms or use a comparison tool that runs locally.

  • Before relying on a result, check the destination:
  • Paste a short sample into the target system and confirm the characters appear as expected.
  • Search the pasted text for a key word to confirm it matches ordinary letters.
  • If accessibility matters, listen to the sample with the screen reader your audience uses.
  • Confirm which differences your comparison tool's settings ignore, including case and whitespace, rather than assuming.

Evidence gap: this guide describes general principles of how text and formatting are stored. No specific comparison tool, editor or screen reader was tested for it, and individual products may define "formatting" more broadly or narrowly than described here. Verify behavior with your own tool and a short sample before using it for consequential checks.