Encoding is the process of writing data to a different format, most commonly for the purpose of compression.