The original North American Universal Product Code (UPC), which dates to 1971, used a set of two dark (usually black) and two light (usually white) bars of specified thicknesses to represent 12 numbers, but beginning in 2005 the Uniform Code Council, now known as GS1 US, adopted the similar European Article Numbering Code (EAN), which encodes 13 numbers and had become the international standard. The standards for the international product bar code system are managed by GS1, formerly known as EAN International, which is based in Brussels. The dark bars may be from one to three units wide and the light bars from one to four units. For registration purposes two one-unit dark bars are placed at each end and in the middle. Each item is assigned a unique numeric code, which is printed as a bar code on the item's packaging.
So-called two-dimensional (2D) bar codes permit the encoding of information about an item in addition to an identifying code. In a 2D bar code, two axes, or directions, are used for recording and reading the codes and the bar size is reduced, increasing the space available for data in the way that a column of words improves on a column of letters. Some 2D codes do not use bars at all, such as the United Parcel Service's hexagon-based Maxicode.
An emerging technology, radio-frequency identification (RFID), could supplant the bar code in most applications. The newer radio-based devices overcome many of the limitations inherent in the bar code's optical technology.
Letters | |
| A | · - |
| B | - · · · |
| C | - · - · |
| D | - · · |
| E | · |
| F | · · - · |
| G | - - · |
| H | · · · · |
| I | · · |
| J | · - - - |
| K | - · - |
| L | · - · · |
| M | - - |
| N | - · |
| O | - - - |
| P | · - - · |
| Q | - - · - |
| R | · - · |
| S | · · · |
| T | - |
| U | · · - |
| V | · · · - |
| W | · - - |
| X | - · · - |
| Y | - · - - |
| Z | - - · · |
Numbers and Punctuation | |
| 1 | · - - - - |
| 2 | · · - - - |
| 3 | · · · - - |
| 4 | · · · · - |
| 5 | · · · · · |
| 6 | - · · · · |
| 7 | - - · · · |
| 8 | - - - · · |
| 9 | - - - - · |
| 0 | - - - - - |
| Period | · - · - · - |
| Comma | - - · · - - |
Letters | |
| C | · · · |
| F | · - · |
| J | - · - · |
| L | —— |
| O | · · |
| P | · · · · · |
| Q | · · - · |
| R | · · · |
| X | · - · · |
| Y | · · · · |
| Z | · · · · |
Numbers and Punctuation | |
| 1 | · - - · |
| 2 | · · - · · |
| 3 | · · · - · |
| 4 | · · · · - |
| 5 | - - - |
| 6 | · · · · · · |
| 7 | - - · · |
| 8 | - · · · · |
| 9 | - · · - |
| 0 | —— |
| Period | · · - - · · |
| Comma | · - · - |
Standard bar code used to identify grocery and other retail merchandise. In the UPC system, the five digits on the left are assigned to a particular manufacturer or maker and the five digits on the right are used by that manufacturer to identify a specific type or make of product.
Learn more about Universal Product Code (UPC) with a free trial on Britannica.com.
Systematic compilation of law or legal principles. The oldest extant fragments of a law code are tablets from the ancient city of Ebla dating to circa 2400 BC. The best-known ancient code is that of Hammurabi. Roman legal records began in the 5th century BC, though the first formal codification, ordered by Justinian I, was not undertaken until the 6th century AD. In the Middle Ages and into the modern era, only local or provincial compilations were attempted. The first major national code was the Napoleonic Code, followed by the German, Swiss, and Japanese codes. In common-law countries such as England and the U.S., law codes have traditionally been less important than the record of judicial decisions, though major codifications were completed in the U.S. in the 20th century (e.g., the U.S. Code, the Uniform Commercial Code). Seealso civil law; German Civil Code.
Learn more about law code with a free trial on Britannica.com.
Sequence of nucleotides in DNA and RNA that determines the amino acid sequence of proteins. A messenger RNA molecule synthesized from the DNA directs the synthesis of the protein. Three adjacent nucleotides constitute a unit known as a codon; each codon codes for a single amino acid. There are 64 possible codons, 61 of which specify the 20 amino acids that make up proteins. Because most of the 20 amino acids are coded for by more than one codon, the code is called degenerate. Once thought to be identical in all forms of life, the genetic code has been found to vary slightly in certain organisms and in the mitochondria of some eukaryotes.
Learn more about genetic code with a free trial on Britannica.com.
System of symbols and rules used for expressing information according to an unvarying rule for replacing a piece of information from one system, such as a letter, word, or phrase, with an arbitrarily selected equivalent in another system. Substitution ciphers are similar to codes except that the rule for replacing the information is known only to the transmitter and the intended recipient of the information. Binary code and other machine languages used in digital computers are examples of codes. Elaborate commercial codes were developed during the early 20th century (see Jean M.E. Baudot, Samuel F. B. Morse). In recent years more advanced codes have been developed to accommodate computer data and satellite communications. Seealso ASCII, cryptography.
Learn more about code with a free trial on Britannica.com.
Laws, enacted in the former Confederate states after the American Civil War, that restricted the freedom of former slaves and were designed to assure white supremacy. They originated in the slave codes, which defined slaves as property. In some states these codes included vagrancy laws that targeted unemployed blacks, apprentice laws that made black orphans and dependents available for hire to whites, and commercial laws that excluded blacks from certain trades and businesses and restricted their ownership of property. Northern reaction to the laws helped produce Radical Reconstruction and passage of the 14th and 15th amendments to the Constitution, as well as creation of the Freedmen's Bureau. Many provisions of the black codes were reenacted in the Jim Crow laws and remained in force until the 1964 Civil Rights Act.
Learn more about black codes with a free trial on Britannica.com.
Printed series of parallel bars of varying width used for entering data into a computer system, typically for identifying the object on which the code appears. The width and spacing of the bars represent binary information that can be read by an optical (laser) scanner that is part of a computer system. The coding is used in many different areas of manufacturing and marketing, including inventory control and tracking systems. The bar codes printed on supermarket and other retail merchandise are those of the Universal Product Code (UPC).
Learn more about bar code with a free trial on Britannica.com.
French civil code enacted by Napoleon in 1804. It clarified and made uniform the private law of France and followed Roman law in being divided into three books: the law of persons, things, and modes of acquiring ownership of things. In Louisiana, the only civil-law state in the U.S., the civil code of 1825 (revised in 1870 and still in force) is closely connected to the Napoleonic Code. Seealso law code.
Learn more about Napoleonic Code with a free trial on Britannica.com.
Collections of laws and legal interpretations developed under the sponsorship of the Byzantine emperor Justinian I from 529 to 565. Strictly speaking, they did not constitute a new legal code. Rather, Justinian's committees of jurists provided basically two reference works that contained collections of past laws and extracts of the opinions of the great Roman jurists. Also included were an elementary outline of the law and a collection of Justinian's new laws.
Learn more about Justinian, Code of with a free trial on Britannica.com.
Collections of laws and legal interpretations developed under the sponsorship of the Byzantine emperor Justinian I from 529 to 565. Strictly speaking, they did not constitute a new legal code. Rather, Justinian's committees of jurists provided basically two reference works that contained collections of past laws and extracts of the opinions of the great Roman jurists. Also included were an elementary outline of the law and a collection of Justinian's new laws.
Learn more about Justinian, Code of with a free trial on Britannica.com.
(1661–65) Four acts, passed in England during the ministry of the earl of Clarendon, designed to cripple the power of the Nonconformists, or Dissenters. The first, the Corporation Act, forbade municipal office to those not taking the sacraments at a parish church; the Act of Conformity excluded them from church offices; the Conventicle Act made meetings for Nonconformist worship illegal; and the Five-Mile Act forbade Nonconformist ministers to live or visit within five miles of any place where they had ministered.
Learn more about Clarendon Code with a free trial on Britannica.com.
Data-transmission code used to represent both text (letters, numbers, punctuation marks) and noninput device commands (control characters) for electronic exchange and storage. Standard ASCII uses a string of 7 bits (binary digits) for each symbol and can thus represent 27 = 128 characters. Extended ASCII uses an 8-bit encoding system and can thus represent 28 = 256 characters. While ASCII is still found in legacy data, Unicode, with 8-, 16-, and 32-bit versions, has become standard for modern operating systems and browsers. In particular, the 32-bit version now supports all of the characters in every major language.
Learn more about ASCII with a free trial on Britannica.com.