ENKO

Last edited Category: Projects

NMT Code is a two-dimensional code made by NeedMoreTruth. Like a QR code it is a pattern of black and white squares read with a camera, and the developer introduces it as "a next-generation improvement on the QR code, designed to hold far more data".

Where the largest QR code is 177 × 177 squares, an NMT Code can grow to 4108 × 4108 and does not have to be square. For the same content it takes fewer squares than a QR code.

It is not compatible with QR codes. A phone's built-in camera app cannot read it, and a dedicated reader is needed. 0.0.1, released on 29 September 2026, is both the first version and the latest, and for now only black-and-white codes can be made and read.

Contents10 sections

1.Differences from the QR code

The squares are called modules. The differences from the QR code given in the specification are in the table below.

QR codeNMT Code
40 square versionsAny rectangle from 20 to 4108 modules, each side a multiple of 4
Quiet zone of 4 modulesQuiet zone of 2 modules
3 finder patterns in the 1:1:3:1:1 ratio4 finder patterns, one per corner, any 3 of which are enough
One of 8 masks, chosen by penalty rulesOne fixed whitening sequence
Largest code 177 × 177 modulesLargest code 4108 × 4108 modules
Data split into segments by modeOne codec for the whole content, compression included

How much smaller it gets depends on the content. Below is the README's comparison, with both codes at their lowest error correction level and the quiet zone left out.[1]

ContentBytesNMT CodeQR code
Repository address4020 × 28 = 56029 × 29 = 841
Korean sentence (UTF-8)8424 × 36 = 86437 × 37 = 1,369 as UTF-8, 33 × 33 = 1,089 as EUC-KR
English sentence8724 × 36 = 86437 × 37 = 1,369
50 digits5020 × 28 = 56025 × 25 = 625

In capacity, a 176 × 176 NMT Code holds 3,185 bytes at the lowest error correction level, against 2,953 bytes for the largest QR code. The largest NMT Code has room for about 1.7 MB, but the specification caps what one code may unpack to at 1 MiB.

In practice, though, camera resolution gets in the way first. On a 1920 × 1080 screen the largest code the specification recommends is 324 × 324 modules, which holds 10,905 bytes.

2.Structure

Each corner has a 5 × 5 finder pattern, and all four are shaped differently. So recognising just two of them is enough to tell how far the code has been turned and whether it is mirrored, and the code can be read with one of the four hidden.

So that QR readers are not confused, the 1:1:3:1:1 ratio that QR finder patterns use was avoided on purpose.

Error correction is Reed-Solomon, the same as in the QR code. There are four levels, repairing about 7.5%, 15%, 25% and 30%, set to match the QR code's L, M, Q and H.

2.1.Codecs

The content goes in through one of six codecs, and the program making the code tries them all and picks whichever comes out shortest.

  • Token table: 240 strings that come up often, like https:// and github.com, are each swapped for a single token. The repository address, 40 bytes long, becomes 19 bytes this way.
  • Hangul: one Hangul syllable goes into 14 bits. UTF-8 takes 24 bits a syllable, so that is 0.58 of the size. All 11,172 syllables are covered, and so are lone letters used in chat.
  • Digits: 3 digits in 10 bits, the same density as the QR code's numeric mode.

The rest are storing the bytes as they are, upper-case letters and digits, and the general-purpose compressor brotli.

3.The QR code beside it

A phone that reads only QR codes can do nothing with an NMT Code on its own. For that case a small ordinary QR code can be attached beside the NMT Code. It holds only the address of the repository, so scanning it opens the page that explains what NMT Code is.

It is attached by default on codes for printing, and with --qr otherwise. Attaching it does make the whole picture larger than a QR code of the same content, 1.92 times in the case of the repository address.[2]

An NMT Code reader checks the QR code beside the symbol and reports an error if the address in it is not a known one. The point is to stop somebody sticking another QR sticker on top.

4.Using it

Download the archive for your system from the releases page of the repository (Linux, macOS and Windows), unpack it and you get the nmtcode command. nmtcode make makes a code and nmtcode read reads one.

  • nmtcode make --url https://example.com -o link.png: a PNG holding a web address
  • nmtcode make --text "Meet at the north entrance at 7 pm" -o note.svg: an SVG holding text
  • nmtcode make --file report.pdf -o report.png: a code that carries a whole file
  • nmtcode read photo.jpg: read the code in a photo

read only prints an address it finds and does not open it. A file carried in a code is saved only when --out is given.

There is a web page version too, which makes codes and reads them with the camera. It comes as an archive that you unpack and serve on your own computer, and everything happens inside the browser, so what you type and what you photograph do not leave the device.

5.Not there yet

Colour codes are at the experimental stage. The specification has a profile that uses four colours, black, blue, yellow and white, to carry one more bit per cell, but give 0.0.1 --profile color and it stops with an error saying colour codes cannot be made yet.

Multi-frame transfer, where a screen shows a series of codes and a camera takes them in to move a file, is also planned but not in the specification yet.

Reading has been measured only on simulated camera photos. Of 1,000 codes 992 were read and none was misread, with a median of 11.9 ms per photo. Tilted 45° and blurred, only 32 to 53% were read. Photos taken with a real phone had not been measured as of November 2026.

6.History

The repository started on 23 September 2026, and most of the work was done on the single day of 29 September. Draft 0.1 was implemented from end to end, the specification was revised to 0.2 after four rounds of review, and reading from camera photos, the web page and the 0.0.1 release all came out.

Codes made to draft 0.1 are not read under 0.2. Codes made with 0.0.1 are said to stay readable in every 0.x version to come.

7.Trivia

  • The token table shows who the code is for. Next to youtube.com and github.com are smartstore.naver.com, blog.naver.com, open.kakao.com and Korean domains like .go.kr.
  • The same table has bitcoin:, lightning: and bc1q, the start of a Bitcoin address.
  • "QR Code" is a registered trademark of DENSO WAVE. The specification states that NMT Code is not a QR code and has not been approved by DENSO WAVE, and that word never appears on an NMT Code symbol or on the QR code beside it.
  • Every printed QR code of that kind points to the GitHub account needmoretruth, so the specification forbids renaming or deleting the account: if somebody else registered the old name, every printed code could be hijacked. It is a rule laid on the account's owner and nothing a reader can check.
  • The list of contributors ends on one line: "Nobody yet."
  • The body of the specification uses the British spelling, colour, but the profile's name is color.
  • The example sentence in the README differs by language: the English one makes a code out of Meet at the north entrance at 7 pm.

8.See also

9.References

  1. [1]A QR code also shrinks if the Korean is stored as EUC-KR, but many QR readers read Korean properly only when it is UTF-8.
  2. [2]For a 20 × 20 code it is 2.60 times. That is why it is attached by default only on codes for printing: a printed code often meets phones with no NMT Code reader and cannot be fixed afterwards.