Open In App

Difference between Rich text and Plain text

Last Updated : 10 Aug, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

What is Text.:- Collection of words or letters is called as text.

This is a plain text-Geeks for Geeks

This is a rich text- Geeks for Geeks

It is clear from the above two types of text that what we are dealing with now lets see them one by one in detail and the difference between them.

1. PLAIN TEXT :
Plain text is a text with no styles attached or embedded with it. It is just a plain text i.e. simple text. It was created by American Hardware Designers in the 60s 70s. And the files with plain text are saved with .txt or .TXT extension.

Advantages of plain text –

  • if you write something in plain text then whenever you open that file on any machine then the end result will be same that is it will show the text as it is on every system. Unlike rich text if you format the text and add the styles to it then it might create problem if the end person doesn’t have suitable app for it then it will distort its styles as a result it will leave a bad impression on the user.
  • It is fast and flexible as it doesn’t uses styles and formatting therefore it is fast and flexible.
  • file size of plain text format is less as compared to rich text format.

Disadvantages of plain text –

  • In the todays era almost 90% of the  word processor uses rich text format.
  • It looks very basic i.e. without styles.
  • To read the plain text it becomes boring sometimes.

Examples of plain text –

 

2. RICH TEXT :
Rich text is a text with styles attached or embedded with it so whenever you are copying the rich text and pasting to editor which support rich text then it will automatically include all the styles formatting spacing etc. Rich text format was created by Microsoft in 80s and they discontinued the development of rich text in 2008..Rich text files are usually save with .rtf or .RTF extension.

if you paste the given rich text in notepad or editor with only plain text format then it will look like the above image as the plain text editor will only include the text without styles and formatting.

Advantages of rich text –

  • In almost 90% of word processors supports the rich text format.
  • It looks interesting that a text with styles like the text given below in green color Geeks for geeks rather than simple text as it include styling and formatting as a result developer learn how to style and format the text.
  • To keep the end user connected to the text without getting bored.

Disadvantages of rich text –

  • If the rich text file is opened in word processor which do not support rich text then it doesn’t looks good to the user as the formatting might not support the word processor.
  • file size is large as compared to plain text as it includes styles and formatting information with it
  • it is also bit complex to add the styles and formatting as it takes more time compared to plain text

Examples of rich text –

 

Difference between Rich text and Plain text :

S,No            

 PLAIN TEXT                                                

                                        RICH TEXT    
1. Text with no Formatting Text with Formatting
2.  Styles are absent Styles are embedded with it.
3.  Files are saved with .txt or .TXT extension Files are saved with .rtf extension or any extension that supports rich text format like .docx
4.  Created by American Hardware Designers in the 60s,70s Created by Microsoft in 80s and later they discontinued the development in the year 2008
5. It is the default text format of notepad, command terminal etc It is the default text format of Microsoft Word , Google docx etc
6. Used in email,cryptography etc. Used in html webpages, Microsoft words etc. 
7. Example-Geeks for Geeks. Example GEEKS FOR GEEKS
8. Not used much as everywhere rich text format is used as it makes  formatting easy. It is used widely as it is makes the formatting a ease.
9. Whenever the rich text is pasted in plain text editor then it only includes symbols,spaces,line breaks. Whenever the rich text is pasted in rich text editor then it includes all the formatting and styles.
10. Whenever the plain text is pasted in rich text editor then it is pasted as it is. Whenever the plain text is pasted in plain text editor then it is pasted as it is.
11. File size is small as compared to rich text file File size is large as compared to plain text file
12. Compatible to all the word processors Compatible to only word processors which supports rich text format.

Conclusion-:

It all depends on the user that which type of text he/she would like to use like if he/she works more on docx and notepad++ then they should prefer using rich text. and vice versa.


Similar Reads

Difference Between Data Mining and Text Mining
Data Mining: Data mining is the process of finding patterns and extracting useful data from large data sets. It is used to convert raw data into useful data. Data mining can be extremely useful for improving the marketing strategies of a company as with the help of structured data we can study the data from different databases and then get more inn
3 min read
Difference between text() and html() method in jQuery
Text() Method: This method returns the text content of the selected elements. It overwrites the content of all the matches element while setting the content. Syntax: To return text content:$(selector).text()To set text content:$(selector).text(content)To set the text content using a function:$(selector).text(function(index, currentcontent)) html()
2 min read
Difference between Word Processor and Text Editor
1. Word Processor :Word Processor processes the words with pages and paragraphs. It is a processor that provides the basic editing, input, formatting, and output of the text with some additional features. It is a fully functioned desktop publishing program that produces error-free documents.2. Text Editor :It is a type of computer program which hel
3 min read
Difference between html() text() and val() methods in jQuery
In this article, we are going to discuss the differences between html(), text(), and val() methods and their usage. 1. jQuery html() method: The html() method is used to set or return the inner HTML of a selected element. It works similarly to innerHTML in normal JavaScript to set or get the content of the selected element. The above code tells the
4 min read
Difference Between C++ Text File and Binary File
A text file is the one in which data is stored in the form of ASCII characters and is normally used for storing a stream of characters. Text files are organized around lines, each of which ends with a newline character ('\n'). The source code files are themselves text files. A binary file is the one in which data is stored in the file in the same w
4 min read
Difference between Text Mining and Natural Language Processing
Text Mining and Natural Language Processing (NLP) are both fields within the broader domain of computational linguistics, but they serve distinct purposes and employ different methodologies: Text MiningText Mining goal is to extract significant numeric indices from the text. Thus, make the facts contained in the textual content available to a range
3 min read
Difference between Difference Engine and Analytical Engine
Introduction: The development of computing technology has a rich history, with many inventions and innovations leading to the creation of the modern computer. Two such machines, the Difference Engine and Analytical Engine, were created by the English mathematician and inventor Charles Babbage in the 19th century. While these machines share some sim
7 min read
Difference between Voltage Drop and Potential Difference
Voltage Drop is defined as the decrease in the electric potential along the path of current that is flowing in an electric circuit. Voltage drop can be assigned at each point in the electric circuit that is proportional to the electrical elevation. The amount of energy delivered per second to any component in the circuit is equal to the voltage dro
4 min read
Difference Between Electric Potential and Potential Difference
The flow of electric charges is known as electricity, and it is responsible for producing electric current. An important word associated with electricity is electric potential. A potential difference is required to create the flow of electrons and hence, produce electricity. Before understanding the difference between electric potential and potenti
7 min read
Difference and Similarities between PHP and C
PHP is a server-side scripting language designed specifically for web development. It can be easily embedded in HTML files and HTML codes can also be written in a PHP file. The thing that differentiates PHP from a client-side language like HTML is, PHP codes are executed on the server whereas HTML codes are directly rendered on the browser. C is a
3 min read