# Encoding

Encoding (symbology) represents the mapping between messages and barcodes.

The symbology specification includes the encoding of the individual digits or characters of the message, the start and stop markers in the bars and the space, the size of the quiet zone before and after the Barcode, and the computation of a checksum.

The following table lists the available symbologies and their specifications supported by the [Barcode](https://demos.telerik.com/aspnet-core/barcode/index).

<style scoped>
    .stripes
    {
        border: 1px solid #E15613;
        border-collapse: collapse;
    }
    .stripes th
    {
        background: #E15613;
        color: #fff;
    }
    .stripes tr:nth-child(2n+1) td
    {
        background: #fed;
    }
    .stripes td:nth-child(n+2)
    {
        text-align: center;
    }
    .stripes th,
    .stripes td
    {
        padding: 3px 5px;
    }
</style>

> If the value for a particular encoding you provide does not meet the expected length or character set, it will throw an error.

<table class="stripes" style="margin-top: 1.2em;">
   <tbody>
        <tr>
            <th>Symbology</th>
            <th>Character set</th>
            <th>Length</th>
            <th>Check digits</th>
        </tr>
        <tr>
           <td><a href="https://en.wikipedia.org/wiki/Code_128">Code 39 (default)</a></td>
           <td>[A-Z]; [0-9]; [ - . $ / + % ]</td>
           <td>variable (avg. up to 20 chars)</td>
           <td>optional (Mod. 43)</td>
        </tr>
        <tr>
           <td><a href="https://en.wikipedia.org/wiki/Code_39#Full_ASCII_Code_39">Code39Extended</a></td>
           <td>ASCII (128 characters)</td>
           <td>variable</td>
           <td>optional (Mod. 43)</td>
        </tr>
        <tr>
           <td><a href="https://en.wikipedia.org/wiki/Code_93">Code 93</a></td>
           <td>[0-9];[A-Z];[SPACE . + - / % $]</td>
           <td>variable</td>
           <td>2 check digits</td>
        </tr>
        <tr>
           <td><a href="https://en.wikipedia.org/wiki/Code_93">Code93Extended</a></td>
           <td>ASCII(128 characters)</td>
           <td>variable</td>
           <td>2 check digits</td>
        </tr>
        <tr>
           <td><a href="https://en.wikipedia.org/wiki/International_Article_Number_(EAN)">EAN-13</a></td>
           <td>numeric [0..9]</td>
           <td>12 usable digits</td>
           <td>1 check digit</td>
        </tr>
        <tr>
           <td><a href="https://en.wikipedia.org/wiki/EAN-8">EAN-8</a></td>
           <td>numeric [0..9]</td>
           <td>7 usable digits</td>
           <td>1 check digit</td>
        </tr>
        <tr>
           <td><a href="https://en.wikipedia.org/wiki/Universal_Product_Code">UPC-A</a></td>
           <td>numeric [0..9]</td>
           <td>11 usable digits (first is always 0)</td>
           <td>1 check digit</td>
        </tr>
        <tr>
           <td><a href="https://en.wikipedia.org/wiki/Universal_Product_Code">UPC-E</a></td>
           <td>numeric [0..9]</td>
           <td>6 usable digits (first is always 0)</td>
           <td>1 check digit</td>
        </tr>
        <tr>
           <td><a href="https://en.wikipedia.org/wiki/POSTNET">POSTNET</a></td>
           <td>numeric [0..9]</td>
           <td>variable</td>
           <td>1 check digit</td>
        </tr>
        <tr>
           <td><a href="https://en.wikipedia.org/wiki/Code_11">Code 11</a></td>
           <td>[0-9]; [-]</td>
           <td>variable</td>
           <td>1 or 2 based on length</td>
        </tr>
        <tr>
           <td><a href="https://en.wikipedia.org/wiki/Code_128">Code128</a></td>
           <td>LATIN-1 (<a href="http://en.wikipedia.org/wiki/ISO/IEC_8859-1">ISO-8859-1</a>)</td>
           <td>variable</td>
           <td>1 check digit</td>
        </tr>
        <tr>
           <td><a href="https://en.wikipedia.org/wiki/Code_128">Code128A</a></td>
           <td>ASCII 00 to 95 (0-9, A-Z and control codes), special characters</td>
           <td>variable</td>
           <td>1 check digit</td>
        </tr>
        <tr>
           <td><a href="https://en.wikipedia.org/wiki/Code_128">Code128B</a></td>
           <td>ASCII 32 to 127 (0-9, A-Z, a-z), special characters</td>
           <td>variable</td>
           <td>1 check digit</td>
        </tr>
        <tr>
           <td><a href="https://en.wikipedia.org/wiki/Code_128">Code128C</a></td>
           <td>ASCII 00-99 (encodes each two digits with one code)</td>
           <td>variable</td>
           <td>1 check digit</td>
        </tr>
        <tr>
           <td><a href="https://en.wikipedia.org/wiki/GS1-128">GS1-128</a></td>
           <td>depending on Application Identifier</td>
           <td>variable</td>
           <td>1 check digit</td>
        </tr>
        <tr>
           <td><a href="https://en.wikipedia.org/wiki/MSI_Barcode">MSImod10</a></td>
           <td>numeric [0..9]</td>
           <td>variable</td>
           <td>1 check digit</td>
        </tr>
        <tr>
           <td><a href="https://en.wikipedia.org/wiki/MSI_Barcode">MSImod11</a></td>
           <td>numeric [0..9]</td>
           <td>variable</td>
           <td>1 check digit</td>
        </tr>
        <tr>
           <td><a href="https://en.wikipedia.org/wiki/MSI_Barcode">MSImod1010</a></td>
           <td>numeric [0..9]</td>
           <td>variable</td>
           <td>1 check digit</td>
        </tr>
        <tr>
           <td><a href="https://en.wikipedia.org/wiki/MSI_Barcode">MSImod1110</a></td>
           <td>numeric [0..9]</td>
           <td>variable</td>
           <td>1 check digit</td>
        </tr>
    </tbody>
</table>

## See Also

* [Basic Usage of the Barcode component for ASP.NET Core (Demo)](https://demos.telerik.com/aspnet-core/barcode/index)
* [Server-Side API](https://www.telerik.com/aspnet-core-ui/documentation/api/barcode)
