New in shop

Leica 6-bit coding: Understanding M lens coding

minutes to read Last edit on 30 June 2026

Leica’s 6-bit coding is a marking present on M lenses that enables digital cameras to automatically recognize the lens fitted. Once identified, the camera applies appropriate corrections, notably for vignetting and color drift, and records the lens model in the EXIF data.

Leica M lenses are renowned for their optical quality and longevity, including older models designed for film. Thanks to 6-bit coding, these lenses can be upgraded for digital use.

By adding a specific marking on the bayonet ring, the old lens is fully recognized by the digital camera, just like a recent model. The camera can then automatically identify the lens and apply the appropriate corrections.

What is 6-bit coding at Leica?

6-bit coding was introduced by Leica in 2006 with the launch of the Leica M8, the brand’s first digital rangefinder camera. It’s based on a binary code composed of six black and white zones, located on the lens bayonet ring. This code, ranging from 0 to 63, is read by an optical sensor inside the camera. It automatically identifies the lens in use, without manual intervention in the menus.

In addition, this system makes it possible to integrate lens information into image EXIF metadata, facilitating image management and post-processing.

The data transmitted is also used to apply appropriate optical corrections (vignetting, color shifts, etc.), notably on JPEG files, as well as during RAW file development.

Where is the code on the lens?

The 6-bit code is located on the bayonet ring. It takes the form of six small areas, painted black or left white, arranged in a line.

How does the camera read the information?

An optical sensor built into the housing analyzes this pattern when the lens is mounted. Your Leica camera reads it automatically, without any action on the part of the user.

Leica 6 Bit Coding Objectifs M
OLYMPUS DIGITAL CAMERA
Leica 6 Bit Coding Objectifs M

What is the purpose of 6-bit coding on a digital camera?

6-bit coding brings a number of practical benefits:

  • Automatic identification of the mounted lens
  • Application of optical corrections (vignetting, color drift)
  • Recording of information in EXIF metadata

Can 6-bit coding be added to uncoded M optics?

Yes, it is possible to add 6-bit coding to older Leica M lenses, originally designed for film.

This operation involves applying a specific marking to the bayonet, using the code corresponding to the lens model. Once coded, the lens is recognized by compatible digital cameras, which can then optimize image rendering.

This allows you to retain the characteristics of older lenses, while benefiting from the advantages offered by more recent digital cameras.

Leica offers a list of code correspondences, ensuring compatibility with many M system lenses. This approach is in line with the Leica M system’s long-term vision.

For example, code 100100 corresponds to a specific model, the Leica 75mm f/2 APO-Summicron-M ASPH.

Leica lens code list

Leica offers a list of codes for adding 6-bit coding to older lenses, to ensure compatibility with recent digital cameras.

List of Leica M lenses compatible with 6-bit encoding for digital use

This list enables you to identify the code corresponding to your lens in order to add 6-bit coding to a non-coded lens. In this way, you can adapt an old Leica M lens and make it fully recognized by a digital camera.

Tips: In the code, 0 corresponds to a white cell and 1 to a black cell.

Lens NameBlackChromeCode
Tri-Elmar-M 16-18-21mm f/4 ASPH11626010000
Super-Elmar-M 18mm f/3.8 ASPH11649110100
Super-Elmar-M 21mm f/3.411145110011
Elmarit-M 21mm f/2.811134000001
Elmarit-M 21mm f/2.8 ASPH1113511897011000
Summilux-M 21mm f/1.4 ASPH11647101111
Elmar-M 24mm f/3.8 ASPH11648110010
Elmarit-M 24mm f/2.8 ASPH1187811898011001
Summilux-M 24mm f/1.4 ASPH11601110000
Tri-Elmar-M 28-35-50mm f/4 ASPH1189011894101010
Elmarit-M 28mm f/2.8 (III)11804000011
Elmarit-M 28mm f/2.8 (IV)11809011011
Elmarit-M 28mm f/2.8 ASPH11606011100
Summicron-M 28mm f/2 ASPH11604011010
Summarit-M 35mm f/2.511643101011
Summicron-M 35mm f/2 (IV)1131011311000110
Summicron-M 35mm f/2 ASPH1187911882011110
Summilux-M 35mm f/1.4 ASPH1187411883011101
Elmar-M 50mm f/2.81183111823100010
Summarit-M 50mm f/2.511644101100
Summicron-M 50mm f/2 (III)11817010111
Summicron-M 50mm f/2 (IV, V)1181911825100001
APO-Summicron-M 50mm f/2 (VI)11141101001
Summilux-M 50mm f/1.4 (II)1186811856000101
Summilux-M 50mm f/1.4 ASPH1189111892100000
Noctilux-M 50mm f/111821011111
Noctilux-M 50mm f/0.95 ASPH11602110001
Summarit-M 75mm f/2.511645101101
APO-Summicron-M 75mm f/2 ASPH11637100100
Summilux-M 75mm f/1.411810100011
Macro-Elmar-M 90mm f/41163311634100111
Macro-Adapter-M14409101000
Tele-Elmarit-M 90mm f/2.811800000100
Elmarit-M 90mm f/2.81180711808100110
Summarit-M 90mm f/2.511646101110
Summicron-M 90mm f/21113611137000111
APO-Summicron-M 90mm f/2 ASPH1188411885100101
Elmarit-M 135mm f/2.811829001001
APO-Telyt-M 135mm f/3.411889110101

Tool for coding an old Leica M lens

Dedicated tools enable you to add or reproduce the 6-bit marking on the bayonet of non-coded Leica lenses. They facilitate precise application of the pattern and guarantee reliable reading by the housing.

More tips & reviews

Physical shop in Brussels Expert guidance & Hands-on experience
Fast and safe delivery Free for be Belgium over €350 and €750 for EU
Spread payments solutions Up to 84 settlements with mozzeno
Terms & Privacy Policy Cookie preferences
Liva • All rights reserved, 2026 • Made with 🍟 in Belgium
THIS IS STAGING