Standards/app-clip-code
App Clip Code
Overview
An App Clip Code is Apple's circular code that opens an App Clip, a small part of an iOS app that runs without installing the full app. A person points the iPhone's Camera app, or the Code Scanner in Control Center, at the code; if the code also has an NFC tag behind it, they can instead hold the iPhone close to it. The system then offers to launch the App Clip 16. The visual pattern encodes one HTTPS invocation URL, and an embedded NFC tag, if present, carries the same URL 1. Scanning requires iOS or iPadOS 14.3 or later 19.
It is a proprietary Apple format, not an open standard. Apple documents the URL rules, the design and the printing rules, but not how the URL is turned into the ring pattern; only codes made in App Store Connect or with Apple's App Clip Code Generator are approved for use 26. An independent project reverse-engineered the encoding in 2026 1920.
History
- 22 June 2020, announcement. Apple introduced App Clips with iOS 14 at WWDC 2020. Its press release listed "a new Apple-designed App Clip code" alongside NFC tags and QR codes as ways to open one, with a footnote that the code would be "available in a future software update"; it also said App Clips integrate with Apple Pay and Sign in with Apple 11. A WWDC20 session said Apple would release the codes and the tools to create them "later this year", and that "each app clip code encodes a URL" 12.
- 14 December 2020, launch. Apple released iOS and iPadOS 14.3, which can scan App Clip Codes by camera or by tapping 14. The same day developers could start generating codes in App Store Connect or with the command-line App Clip Code Generator 13. NFCW reported that the embedded tag is a Type 5 NFC tag 15.
- 15 December 2020, printing. R.R. Donnelley (RRD) announced that its Touchless World unit would make the "code-embedded, multi-layer decal" the NFC version needs 16. Apple's printing guide still names Touchless World by RRD as an example print service 7.
- AR tracking. ARKit gained
ARAppClipCodeAnchorin iOS and iPadOS 14.3, which locates an App Clip Code in the camera feed and reads its URL 9.
Technical specification
What it encodes. One invocation URL of the form https://[host][/<path>][?<query>][#<fragment>], which must match an advanced App Clip experience the developer has registered (or, during development, a local experience) 248. Apple's rules for that URL 2:
| Part | Apple's rule |
|---|---|
| Scheme | https, lowercase |
| Host | Only lowercase a–z, . and - |
| Path, query, fragment | a–z, A–Z, 0–9 and /#?=%-._,+;:& |
| Length | No fixed character limit: the tools compress the URL, so what fits depends on the characters and words used; both tools report a URL that is too long |
Apple's advice for fitting a URL: use the special first subdomain appclip (as in https://appclip.example.com), which compresses better; drop www and trailing slashes; prefer decimal numbers as query values; name query arguments p, p1, p2… in order; avoid UUIDs; and, if a path is needed, use one of the 156 words Apple lists (shop, menu, order, pay, checkin, tickets and so on), which are encoded more efficiently 2. A long query string can be replaced by a hash that the App Clip expands after launch 2. Apple's example of an encodable URL is https://appclip.example.com/shop?p=123&p1=ab 2.
Capacity and encoding (reverse-engineered, not from Apple). Apple says only that a code "can only contain a limited amount of information" 2. The rs/appclipcode project, which checks its output against Apple's generator, reports 1920:
| Stage | Finding |
|---|---|
| URL compression | Multi-context (trie-context) Huffman coding driven by Apple-trained frequency tables, plus a fixed table of 113 TLDs and a 156-entry path wordbook (the same count as Apple's published word list); a selector picks "combined" or "segmented" mode |
| Payload | At most 128 bits after compression (16 bytes); Apple's generator rejects longer results with "Compressed URL too large" |
| Error correction | Reed–Solomon: RS(13,9) or RS(13,11) over GF(256) for the gap ring data, RS(7,5) over GF(256) for the arc data, RS(4,2) over GF(16) for metadata |
| Versions | 2 (version 0 for payloads of up to 14 significant bytes, version 1 for up to 16) |
| Layout | 5 concentric rings of 17, 23, 26, 29 and 33 positions; each position is an arc in the foreground colour (bit 0) or the third, derived colour (bit 1), and the bits are spread over the rings by a fixed 128-entry permutation |
The project's notes also differ from Apple's page on one point: they say the generator accepts digits and upper-case letters in the host, which Apple's documented host alphabet does not list 220. They warn that the extracted tables describe one build of Apple's URLCompression.framework and may change 20.
| Choice | Options |
|---|---|
| Type | Scan-only (camera glyph in the centre) or NFC-integrated (iPhone glyph in the centre; also scannable by camera) |
| Design | Badge with the App Clip logo below the code, or the code without the logo when space is short or on disposable items, gambling or drinking items |
| Colours | A foreground and background colour pair, plus a third colour the tool derives from them; 18 default pairs (index 0–17, e.g. white on black, black on white, white on 007AFF); custom pairs are rejected if contrast is too low, and the tool suggests alternatives 3 |
| Output | SVG in the sRGB colour space 36 |
Size and placement rules (HIG) 6:
- Print: at least 3/4 inch (1.9 cm) in diameter. Digital: at least 256 × 256 px, as PNG or SVG.
- NFC-integrated: a Type 5 NFC tag at least 35 mm in diameter, which makes the printed code at least 1.37 inches (3.48 cm) across.
- Distance to size ratio no more than 20:1, ideally 10:1 (a code scanned from 40 inches needs a diameter of at least 4 inches).
- Clear space at least equal to the gap between the centre glyph and the ring; next to a QR code, at least the QR code's size.
- Flat or cylindrical surfaces only (on a cylinder, no wider than one-sixth of its circumference); never rotated, animated, dimmed, overlaid or restyled.
- Print on matte material; rasterise at 600 ppi or more and print at 300 dpi or more; convert sRGB to CMYK with a relative colorimetric intent.
Scanning. On iPhone and iPad the Camera app and Code Scanner read the visual code; the NFC Tag Reader in Control Center, or simply holding the phone near it, reads the NFC tag 16. Code Scanner is off in Control Center by default 8. Inside an app, ARKit's App Clip Code tracking returns the decoded URL, its decoding state (decoding, decoded, failed), position and radius; it needs a device with the Apple Neural Engine 910.
Use cases
- Retail self-checkout. In April 2021 MUJI's UK stores and selected Flying Tiger Copenhagen stores in Denmark and Sweden used App Clip Codes to open MishiPay's scan-and-go App Clip, paid with Apple Pay 17. Select Apple Stores placed codes at accessory and iPhone case bays so shoppers could scan items and pay with Apple Pay 18.
- AR product previews. Apple's "Seed Shop" sample reads an App Clip Code printed on a seed packet and shows the grown plant in AR at its real size 8.
- Apple's own examples. Renting a bike, paying at a fuel pump with an NFC code on each pump, ordering from a restaurant table or café menu, a museum label that opens audio commentary or AR content, and a game demo handed out at an event 6.
- Print production at scale. Apple documents a mapping-file workflow for professional printers: a ZIP of up to 10,000 SVG files with a CSV mapping each file to its URL, because the URL cannot be read from a code by eye 7.
Implementations
Official tools. Codes can be made only with Apple's tools 6:
- App Store Connect. Requires an uploaded build and an advanced App Clip experience. It can make one code per experience, or many codes for one experience from a CSV of URLs (one per row, each matching the experience); URLs that do not fit are refused 45.
- App Clip Code Generator (command-line tool, for Apple Developer Program members, installed at
/Library/Developer/AppClipCodeGenerator). Commands:templateslists the default colour pairs,suggestchecks a custom pair, andgenerate --url … --index … --output … [--type nfc] [--logo none]writes the SVG. A bundled Python script,batch_generator.py, makes codes in bulk from a CSV with the columnsSVG File Name, URL, Background Color, Foreground Color, Type, Logo3. - ARKit (
ARAppClipCodeAnchor) reads codes inside an app 9.
NFC-integrated codes need the SVG combined with a Type 5 NFC tag 615.
Third-party. Apple has not published the encoding; the reverse-engineering project describes the format as undocumented 19. rs/appclipcode (MIT, Go library and CLI plus a TypeScript port that runs in the browser; 31 stars, created April 2026) generates App Clip Code SVGs from accepted URLs, decodes URLs from SVGs, and in Go reads raster images; its author says it matches Apple's generator on accepted URLs 19. It is unaffiliated with Apple 19, and Apple's guidelines approve only codes from App Store Connect or its generator 6, so third-party codes are useful for analysis rather than for deployment. No other open decoder was found.
Comparison
Against a QR code. An App Clip can also be opened from an ordinary QR code or NFC tag that carries a registered invocation URL 26; the App Clip Code is Apple's preferred route because people recognise it as an App Clip 6. The trade-offs: a QR code is cross-platform, while an App Clip Code is proprietary and works only on Apple devices 14; a QR code can hold any URL, while an App Clip Code holds one HTTPS URL within a compressed budget of about 128 bits 220; and only the App Clip Code combines a camera-readable pattern and an NFC tag in one badge 1. Apple says a code placed next to a QR code should be at least the QR code's size 6.
Against other branded codes. Like Snapcode, Messenger Code, Spotify Code and the WeChat Mini Program Code, it is a vendor-controlled code whose generator and main scanner belong to the same company. Its shape differs: an App Clip Code is circular, like the WeChat mini-program code, while a Spotify Code is a row of vertical bars.
Fun facts
- A code shows nothing human-readable about its URL, so Apple tells printers to keep a file mapping each SVG to its URL and to print the URL beside each code on proof sheets 67.
- The generator's SVG names its design
Fingerprint, according to the reverse-engineered spec 20.
Status
Active. Apple's developer documentation, App Store Connect help and Human Interface Guidelines still document App Clip Codes; the HIG App Clips page was last updated on 9 June 2025 156. Apple says it may update the code design at its discretion, and asks developers to stop displaying a code once its App Clip is inactive 6. Apple has published no count of codes in use; the deployments found date from 2021 1718.
Sources
Deployments
No country reports mention this standard by name.
Regions / aggregations not mapped to a single country
- Universal