A code is a rule for converting a piece of information (for example, a letter, word, phrase, or gesture) into another form or representation (one sign into another sign), not necessarily of the same type.In communications and information processing, encoding is the process by which information from a source is converted into symbols to be communicated.