Leica 6-Bit Encoder Kit zum Kodieren von M-Objektiven

Encode Leica M lenses: Get the most out of your glass

Community tip: Macfilos’s in-depth article on 6-bit coding and EXIF tweaking for third-party lenses. Read the article.

Table of contents

  1. What is 6-bit coding?
  2. What exactly does coding do for you?
  3. Which lenses benefit?
  4. Methods compared
  5. Step-by-step guide, including the complete code table
  6. Common mistakes and practical tips

1. What is 6-bit coding?

Six tiny fields on the bayonet ring. Black or white. That’s enough for a digital Leica to identify the lens.

Leica introduced this system in 2006 with the M8, its first digital M camera. In the M system, there are no electrical contacts between the camera and lens. Instead, six recesses sit on the bayonet flange and are filled with either black or white paint. This creates a binary code: six positions, 64 possible combinations. The camera reads this code purely optically: small light emitters in the body illuminate the fields, and light receivers next to them measure how much light comes back. That is how Leica’s patent application from 2006 describes it.

Leica M mount with applied 6-bit coding

Black absorbs the light (= 1), while white and bare metal reflect it (= 0). The sensor reads the sequence clockwise, starting at the 12 o’clock position. It sounds simple and has worked reliably for almost 20 years.

Which cameras read the code? All digital Leica M bodies from the M8 (2006) onward: M8, M8.2, M9, M-E, M Monochrom, Typ 240, M-P, M10, M10-P, M10-R, M10 Monochrom, M11, M11-P, M11 Monochrom. On the SL2 and SL3, the code works via the original Leica M-Adapter L.

Newer Leica lenses (from around 2006 onward) already come coded from the factory. The recesses are machine-milled and permanently painted. Older Leica lenses, Voigtländer, Zeiss ZM, TTArtisan, 7Artisans, and other third-party lenses don’t have this code. That’s exactly where retroactive coding comes in.

2. What exactly does coding do for you?

Four things happen as soon as your camera identifies the lens. All four improve your shooting—some significantly, others subtly.

EXIF data: Order instead of guesswork

Without coding, the metadata shows “Unknown Lens” or nothing at all. Focal length and aperture: nowhere to be found. Anyone who uses 15 different lenses and wants to filter by lens in Lightroom knows the frustration. With coding, the camera automatically writes the correct lens model to every single file.

Automatic image correction: vignetting, color shift, distortion

This is the most tangible benefit. Digital Leica bodies store internal correction profiles for every coded lens. This corrects vignetting (the dark corners), chromatic aberration, and the notorious “Italian Flag” effect directly in the camera. Wide-angle lenses under 35mm benefit especially noticeably.

Smart coding for third-party lenses: Zeiss ZM 35mm f/2 Biogon? Code it as a Leica Summicron-M 35mm f/2 (IV). The focal length, aperture and bright-line frame match, and Zeiss lists this profile as suitable for the Biogon in its recommendation list. It does not have to be perfect: the correction profile covers most of it.

IBIS on the SL2 and SL3: essential, not optional

This is the point many people underestimate. The Leica SL2 and SL3 have in-body image stabilization (IBIS). It absolutely needs the focal length to compensate correctly. Without coding, the camera guesses—or does not stabilize at all. If you mount a 90mm lens and the camera assumes 50mm, IBIS actively makes your image blurry.

Sure, you can set the focal length manually in the menu. If you forget after changing lenses, the next 200 pictures are throwaways. Coding solves this automatically. Do it once and never think about it again.

Adapter choice for the SL: The original Leica M-Adapter L passes the 6-bit code on to the SL. Many third-party adapters (e.g., from K&F Concept and TTArtisan) do not. If you want IBIS and automatic recognition, you need the original adapter.

Workflow: No more clicking through menus

Without coding: change the lens, open the menu, select the focal length manually, confirm, and go back. Annoying with three lens changes a day. Unbearable with ten. Coded lenses are recognized immediately—twist them onto the mount and start shooting.

Why you should definitely code your lenses (especially on the SL2/SL3)

Jonathan Harris from Worldwide Camera Exchange explains the benefits and demonstrates the coding process with the Akara kit.

3. Which lenses benefit?

Short answer: any M-mount lens without factory coding on any digital Leica.

Older Leica lenses (Pre-2006)

Summicron 50mm f/2 Version IV, Summilux 35mm f/1.4 Pre-ASPH, Elmarit 28mm f/2.8—the classics everyone knows and loves. Optically, they often hold their own against current designs. But on the M10 or M11, they remain “invisible” until you code them. The correction profiles turn an already good lens into an even better one.

Voigtländer VM/ZM

The Cosina-made Voigtländer lenses are the insider tip in the M universe. Nokton 35mm f/1.2, Ultron 35mm f/2, APO-Lanthar 50mm f/2: optically first-rate and available for a fraction of the price of Leica. Uncoded from the factory. Some newer models have slight grooves on the flange that help the applied paint adhere better. Code them as the next closest Leica equivalent: first the same bright-line frame, then the same focal length if possible and a similar aperture.

Zeiss ZM

Planar 50mm f/2, Biogon 35mm f/2, C Sonnar 50mm f/1.5. Zeiss has even published an official recommendation list showing which Leica profile matches which ZM wide-angle lens on the M9 and newer models. It is available as a Q&A article on the Zeiss support portal. For 50 and 85 mm, Zeiss does not consider a profile strictly necessary.

Chinese brands: TTArtisan, 7Artisans, Thypoch

Even inexpensive third-party lenses benefit enormously. TTArtisan 50mm f/1.4 on the M11 without a code: no EXIF, no correction, confusing IBIS on the SL. With a code: a completely different user experience. The correction profiles aren't perfect, but an 80% improvement over 0% is a clear win.

6-bit encoder kit with uni Super Ink Marker PNA-125

4. How does the code get onto the lens?

There are four ways. Each has its place, depending on your budget, skill level, and durability requirements.

Method Cost Durability Difficulty Reversible?
Leica factory service approx. 260 EUR Permanent (milled) Send it in No
Match Technical (flange replacement) approx. 80–120 EUR Permanent High (disassembly) Yes (reversible)
Encoder kit (e.g. Ausgeknipst, Akara) approx. 30–50 EUR Durable in everyday use Very easy Yes
DIY (Sharpie + paper stencil) under 5 EUR Low (rubs off) Medium Yes

The Leica tool is the premium option: milled recesses, professionally painted, including cleaning. That makes sense for a 5,000 EUR Noctilux. For a 300 EUR Voigtländer, not so much.

Match Technical offers replacement flanges with pre-milled coding recesses. A solid solution, but you have to partially disassemble the lens. Not for everyone.

For most users, an encoder kit is the sweet spot: snap on the precise stencil, color in the dots, and you're done. No tools, no disassembly. The paint holds up reliably in everyday use and can be removed without leaving residue if needed.

DIY with a Sharpie and paper template works, but it's fiddlier than it sounds. Hitting the exact positions without a stencil requires patience. And the camera can't reliably read every black ink.

5. Step by step: Coding with the Ausgeknipst Encoder Kit

Step-by-step guide to the Leica 6-bit encoder

Step 1: Look up the code

Find your lens in the code table (included with the kit and also available on our product page). Third-party lens? Choose the Leica lens with the same focal length and a similar maximum aperture.

Disclaimer: We sell some of the products that appear here. Even so, the article is meant first and foremost as help and not as a sales pitch.

Step 2: Clip on the encoder

Place the encoder on the bayonet flange and snap it into place. The template fits precisely and shows you the six positions. Nothing wobbles.

Step 3: Paint the dots

Use the included uni Super Ink Marker PNA-125 to fill in the black fields according to the code. Leave the white fields blank; the bare metal reflects the light and counts as white. One dot takes one second.

Step 4: Remove and test the encoder

Remove the template and mount the lens on the camera. The correct lens should now be displayed in the menu or Live View. If not, touch up the dots and make sure no black has spilled onto a white field.

Screw at a coding position? Some lenses have a retaining screw at one of the six positions. No problem: Fill the screw with a dab of white paint or nail polish. If the code calls for a black dot there, simply paint over it in black after it has dried.

Complete 6-bit code table

Find your lens (or the closest Leica equivalent) and read off the code. Position 1 is the 12 o'clock recess; position 6 is the next one clockwise.

Legend: ○ = White (no color/metal) | ● = Black (paint)

Lens Code Display Frame
Tri-Elmar-M 16-18-21mm f/4 010000 ○●○○○○ 28/90
Super-Elmar-M 18mm f/3.8 110100 ●●○●○○ -
Summilux-M 21mm f/1.4 101111 ●○●●●● 28/90
Elmarit-M 21mm f/2.8 000001 ○○○○○● 28/90
Elmarit-M 21mm f/2.8 ASPH 011000 ○●●○○○ 28/90
Super-Elmar-M 21mm f/3.4 110011 ●●○○●● 28/90
Summilux-M 24mm f/1.4 110000 ●●○○○○ 24/35
Elmarit-M 24mm f/2.8 ASPH 011001 ○●●○○● 24/35
Elmar-M 24mm f/3.8 ASPH 110010 ●●○○●○ 24/35
Summilux-M 28mm f/1.4 ASPH 110110 ●●○●●○ -
Summicron-M 28mm f/2 ASPH 011010 ○●●○●○ 28/90
Elmarit-M 28mm f/2.8 (III) 000011 ○○○○●● 28/90
Elmarit-M 28mm f/2.8 (IV) 011011 ○●●○●● -
Elmarit-M 28mm f/2.8 ASPH 011100 ○●●●○○ 28/90
Summaron-M 28mm f/5.6 001011 ○○●○●● 28/90
Summilux-M 35mm f/1.4 Steel Rim 001100 ○○●●○○ -
Summilux-M 35mm f/1.4 ASPH (FLE I/II) 011101 ○●●●○● 35/135
Summicron-M 35mm f/2 (IV) 000110 ○○○●●○ 35/135
APO-Summicron-M 35mm f/2 ASPH 001101 ○○●●○● -
Summicron-M 35mm f/2 ASPH 011110 ○●●●●○ 35/135
Summarit-M 35mm f/2.4 010001 ○●○○○● -
Summarit-M 35mm f/2.5 101011 ●○●○●● 35/135
Noctilux-M 50mm f/0.95 ASPH 110001 ●●○○○● 50/75
Noctilux-M 50mm f/1 011111 ○●●●●● 50/75
Noctilux-M 50mm f/1.2 ASPH 001110 ○○●●●○ -
Summilux-M 50mm f/1.4 (II) 000101 ○○○●○● 50/75
Summilux-M 50mm f/1.4 ASPH 100000 ●○○○○○ 50/75
Summicron-M 50mm f/2 (III) 010111 ○●○●●● 50/75
Summicron-M 50mm f/2 (IV/V) 100001 ●○○○○● 50/75
APO-Summicron-M 50mm f/2 ASPH 101001 ●○●○○● 50/75
Summarit-M 50mm f/2.4 010010 ○●○○●○ -
Summarit-M 50mm f/2.5 101100 ●○●●○○ 50/75
Elmar-M 50mm f/2.8 100010 ●○○○●○ 50/75
Noctilux-M 75mm f/1.25 111010 ●●●○●○ -
Summilux-M 75mm f/1.4 100011 ●○○○●● 50/75
APO-Summicron-M 75mm f/2 ASPH 100100 ●○○●○○ 50/75
Summarit-M 75mm f/2.4 010011 ○●○○●● -
Summarit-M 75mm f/2.5 101101 ●○●●○● 50/75
Summilux-M 90mm f/1.5 111011 ●●●○●● -
Summicron-M 90mm f/2 (II) 000111 ○○○●●● 28/90
APO-Summicron-M 90mm f/2 ASPH 100101 ●○○●○● 28/90
Thambar-M 90mm f/2.2 001100 ○○●●○○ -
Summarit-M 90mm f/2.4 010100 ○●○●○○ -
Summarit-M 90mm f/2.5 101110 ●○●●●○ 28/90
Tele-Elmarit-M 90mm f/2.8 (II) 000100 ○○○●○○ 28/90
Elmarit-M 90mm f/2.8 100110 ●○○●●○ 28/90
Macro-Elmar-M 90mm f/4 100111 ●○○●●● 28/90
Elmarit-M 135mm f/2.8 (I/II) 001001 ○○●○○● 28/90
APO-Telyt-M 135mm f/3.4 110101 ●●○●○● 35/135
Macro-Adapter-M 101000 ●○●○○○ -

On smartphones: scroll the table horizontally. The “Frame” column shows which bright-line frame the lens brings up in the viewfinder. It matters for the coding: the camera reads the code and the frame together and only recognizes the code if both match.

6-bit coding explained and demonstrated

Dr. Scott McDonald demonstrates the coding with a paper template and Sharpie, and explains what the camera does with it.

6-Bit Encoder Kit & Specialty Pen for Leica M & SL (EUR 39.95)

6. Common mistakes and practical tips

Mistake No. 1: Wrong pen

The most common reason why self-coded lenses aren’t recognized. Not every black ink absorbs the light from the sensors in the bayonet: if the ink is glossy, it reflects light, and the camera reads “white” instead of “black.” Then there’s the tip. If it’s wider than the openings in the stencil, you have to force it through, and it frays after just a few lenses. That’s exactly what customers reported to us with the Edding 8400 that used to come in our kit. That’s why our kit now includes the uni Super Ink Marker PNA-125: its fine round tip fits through the openings, and the camera reliably recognizes the code with it. In 2024, PetaPixel also reported on a coding kit whose tests found this pen performed best.

Mistake No. 2: Choosing the wrong code

With a third-party lens, the bright-line frame has to match first; only then do focal length and maximum aperture count. An unmodified 40mm lens such as the Voigtländer Nokton classic 40mm f/1.4 brings up the 50mm frame on the Leica M. A 35mm code is not reliably recognized with it, but a 50mm code is. We recommend the one from the Noctilux-M 50mm f/1 (011111): it also works on copies that have a screw under fields 5 and 6, tested on a Leica M8. The image data will then show 50 mm. Within the matching frame, match focal length and maximum aperture as closely as possible, preferably with the Leica lens having the same or a larger maximum aperture. And preferably choose an older Leica model, because older cameras do not always know the codes of very new lenses.

Mistake No. 3: Forgetting to adjust IBIS manually

Anyone working without coding on the SL2/SL3 who forgets to change the focal length in the menu after changing lenses will systematically produce blurry images. The IBIS then compensates for the wrong focal length. This doesn't happen with coding.

Mistake No. 4: Third-party adapters on the SL

Not every M-to-L adapter passes on the 6-bit code. Only the original Leica M-Adapter L (and a few selected third-party options, such as Novoflex with newer firmware) transfer the coding. K&F, TTArtisan, and many eBay adapters do not.

Code table for third-party lenses: Do you have a lens that doesn't appear in any Leica list? Choose the Leica model with the identical focal length. If the focal length is the same but the aperture differs: lean toward the slower lens (e.g., code an f/1.2 as f/1.4). The vignetting correction for the slower lens is slightly stronger; too much is better than too little.

Mistake No. 5: Applying the code to film cameras

6-Bit coding has no effect on analog Leica M bodies (M6, M7, MP, M-A). The cameras have no sensor to read it. Applying it does no harm, but it does nothing. Save yourself the effort.

Mistake No. 6: Not allowing the paint to dry properly

If you mount the lens on the camera immediately after coloring it in, you risk smearing paint on the bayonet ring. Give the paint a few minutes to cure completely. It is then wipe-resistant.

How to remove the coding: If you want to change or undo the code: apply isopropanol (IPA) to a cotton swab and wipe off the dots. The uni marker ink dissolves with it without leaving any residue. You can then apply a new code or use the lens uncoded.

Leica M lens with Encoder Kit detail

Further resources

The community has compiled a wealth of material. Here are the best sources:

Get started right away? Encoder Kit with special pen, everything you need included. Suitable for every M-mount lens. View the 6-Bit Encoder Kit.

More guides? Film scanner comparisons, camera repair tips, and practical analog photography advice. All blog articles.

Everything in one place The complete Ausgeknipst range, from Leica accessories to film scanners. Shop now.

Back to the blog

2 comments

Hallo Martin,

danke für deine Nachricht. Da es hier um eine konkrete Bestellung geht, schreib uns dazu bitte kurz direkt per E-Mail an info@ausgeknipst.de mit deiner Bestellnummer. Dann können wir das sofort zuordnen und uns direkt darum kümmern.

Viele Grüße,
Vladi

Ausgeknipst

Hallo nach Würzburg, ich hatte den 6Bit-Encoder mit dem Kit Punktabdeckung und der Focus-Tab bestellt und bezahlt. Geliefert wurden aber nur Encounter und Stift. Wann kann ich mit der Zusendung der fehlenden Artikel rechnen?
Mit freundlichen Grüßen
Dr. Martin Loetz

Dr.Martin Loetz

Leave a comment