The purpose of encoding is to transform data so that it can be properly (and safely) consumed by a different type of system, e.g. binary data being sent over email, or viewing special characters on a web page. The goal is not to keep information secret, but rather to ensure that it's able to be properly consumed.
Why do we encode data?
Since encoding removes redundancies from data, the size of your files will be a lot smaller. This results in faster input speed when data is saved. Since encoded data is smaller in size, you should be able to save space on your storage devices. This is ideal if you have large amounts of data that need to be archived.
What is the use of data encoding?
Computers use encoding schemes to store and retrieve meaningful information as data. This is known as data encoding. On electronic devices like computers, data encoding involves certain coding schemes that are simply a series of electrical patterns representing each piece of information to be stored and retrieved.