Skip to content
barcoder

Standards/mecard

MeCard

TypeQR Data Format
Completeness64%high

Overview

MeCard (identifier MECARD:) is NTT DOCOMO's text format for putting one contact card into a QR Code so that an i-mode phone could add it to its phonebook. A handset that finds MECARD: in scanned data shows the fields under an "Add to phonebook" anchor and opens the phonebook registration screen 1. A record is the identifier followed by TAG:value; properties and one more ;, so it ends in ;; 2:

MECARD:N:Docomo,Taro;SOUND:docomotaro;TEL:03XXXXXXXX;TEL:090XXXXXXXX;;

That is DOCOMO's own example, with its two e-mail lines left out; DOCOMO masks the phone numbers with X 1. ZXing's documentation uses a longer example with an address 7. MeCard was never an ISO standard or an RFC; its definition was DOCOMO's developer pages, which no longer resolve on the live site but survive in the Internet Archive 191. It remains readable by general-purpose scanners: ZXing parses it and Google's ML Kit builds its contact-info result from either vCard or MeCard data 816.

History

i-mode bar-code functions. DOCOMO defined MeCard as one of four "synchronization with native applications" identifiers of its i-mode bar-code reader: MECARD: (phonebook registration), MATMSG: (e-mail), MEBKM: (bookmark) and LAPL: (i-αppli) 3. The reader was versioned as the "i-mode compatible code recognition function". Version 1.0 read JAN codes (JAN-13 and its 8-digit form) and QR Code Model 2, versions 1–10, and supported phonebook registration; 2.0 added i-αppli synchronization, content recognition and Structured Append; 3.0 added the BDAY:, ADR:, URL: and NICKNAME: phonebook properties; 4.0 added ToruCa support 4. DOCOMO advised authors to use only 1.0 features if a code had to work on every handset 4.

Handsets. On 21 October 2003 DOCOMO announced the mova 505iS series, whose cameras "read JAN Code and QR Code to easily retrieve data from printed materials and copy and paste information into the phone's address book or save as bookmarks"; the first model, D505iS, was due on 23 October 2003 6. No source read for this page dates the first MECARD: handset or names the people who designed the format.

Outside DOCOMO. ZXing's 1.1 release (22 October 2008) lists "Better calendar event and MECARD support" 11. ZXing's MECARD parser cites, as its basis, an "OMIA Mobile Bar Code Standard v3.2.1" document hosted by Taiwan's mobicode.org.tw 8; that document could not be retrieved for this page. ZXing also records that KDDI's au proposed "a slightly different format" for contacts, and that a similar BIZCARD: format exists for which it found no definitive reference 7. In 2012 the Open Mobile Alliance proposed a 2D-barcode handling standard that was to be backwards compatible with the "Direct Code formats in Japan" used by DOCOMO; that article does not name MeCard 21.

Loss of the spec. Wikipedia notes that by 2016 DOCOMO's defining page returned 404 19. The English phonebook-registration page still returned 404 on 9 November 2026; its archived copy is the source for the field table below 1.

Technical specification

Syntax. Every function is written Identifier Property1 Parameter1; … PropertyN ParameterN; ;. Code that starts with an identifier and ends with a semicolon is one function; without the closing semicolon it is not treated as a function. At least one property is required, and DOCOMO asks that no line breaks be placed in the actual data 2. Colons and semicolons belonging to identifiers and property names must be half-width characters 2.

Properties (DOCOMO, with the code-recognition version that introduced each) 14:

Property Display name Since Value
N: Name 1.0 0 or more characters. A comma splits it: first half = last name, second half = first name
SOUND: Reading 1.0 Kana reading of the name; comma split as for N:
TEL: TEL 1.0 1 to 24 digits
TEL-AV: TEL-AV 2.0 Videophone number, 1 to 24 digits
EMAIL: E-mail 1.0 0 or more characters
NOTE: Memo 1.0 0 or more characters
BDAY: Birthday 3.0 8 digits: year (4), month (2), day (2)
ADR: Address 3.0 Comma-separated: PO box, room number, house number, city, prefecture, zip code, country
URL: URL 3.0 Homepage URL
NICKNAME: Nickname 3.0 0 or more characters

DOCOMO's own example repeats TEL: and EMAIL: (two of each) in one card 1. No property is marked mandatory by DOCOMO; registration simply does not happen when all parameters are empty 2. Wikipedia observes that almost no scanner apps split ADR: at its commas; they show the field as written, so in practice the address follows local layout conventions 19.

Character set. DOCOMO specifies Shift_JIS: line feed (0x0a, 0x0d), space, single-byte alphanumerics 0x21–0x7e, half-width kana 0xa0–0xdf, full-width characters and i-mode pictograms. TEL: and TEL-AV: accept only #, * and 0–9 (single- or full-width); BDAY: accepts only single-byte 0–9 2. Wikipedia instead describes MeCard as UTF-8 based 19, which is not what DOCOMO's table says. On the QR side, DOCOMO's 1.0 reader handled numeric, alphanumeric, 8-bit (JIS X 0201) and Kanji (Shift-JIS, JIS X 0208) modes in any combination 4.

Escaping. DOCOMO requires escape sequences for ¥, :, ; and ,: ¥¥, ¥:, ¥;, ¥, 2. Implementations outside Japan use the backslash in place of ¥: ZXing escapes with \ and un-escapes backslash sequences when parsing 98. Commas are escaped only inside the name, kana and address properties (and i-αppli PARAM:), and only when they are data; a comma that separates last and first name or address segments is not escaped 2. DOCOMO's example is a bookmark URL: URL:http¥://i.nttdocomo.co.jp/; 2.

Length. The usable length of each parameter is bounded by what the handset can store; characters beyond the handset's limit are discarded 2. DOCOMO's rough capacity chart for the QR versions its readers handled runs from 17 binary characters (version 1, level L) to 271 (version 10, level L), and 213 at version 10, level M 5.

How ZXing reads it. ZXing's AddressBookDoCoMoResultParser requires the text to start with MECARD: and to contain N:; it reads N, SOUND, TEL, EMAIL, NOTE, ADR, BDAY, URL and also ORG ("Although ORG may not be strictly legal in MECARD, it does exist in VCARD"). It ignores TEL-AV and NICKNAME, keeps only the first value of each key except TEL, discards a BDAY that is not 8 digits, and turns last,first round into "first last" 8. A field ends at the first ; not preceded by an odd number of backslashes, and the value is then un-escaped 8.

Use cases

  • Phonebook entry from print (Japan). DOCOMO's purpose: a handset reads the code and offers to register the contact 1; the 505iS launch material describes copying printed data into the address book 6.
  • Contact sharing between people. A 2023 write-up of a conference web app describes generating a MeCard from data stored in the browser and showing it as a QR code, and reports the iPhone camera recognising the contact 22.
  • Generators and SDKs. ZXing's Android app and its web generator emit MECARD contact codes, the web generator offering MECARD and vCard and defaulting to MECARD 910; segno (Python) and 2amigos' qrcode-library (PHP) ship MeCard builders 1415.
  • Scanner SDKs. ML Kit's barcode contact-info class is "A person's or organization's business card. This may come from different underlying formats including VCARD and MECARD" 16.

No source read for this page gives deployment volumes, industry use, or MeCard's share of contact QR codes.

Implementations

Project Role MeCard behaviour
zxing/zxing (Java) Decoder + parser + encoder Parser as above 8. Android encoder writes N, ORG, ADR, TEL (repeated), EMAIL (repeated), URL (repeated), NOTE, escapes \, : and ;, removes newlines 9. Web generator does the same and strips commas from N and everything but digits and + from TEL 10
zxing-cpp/zxing-cpp (C++) Decoder Returns text; its content types are only Text, Binary, Mixed, GS1, ISO15434 and UnknownECI, so MeCard interpretation is left to the app 12. Its test corpus includes MeCard payloads such as MECARD:N:測試;; 13
heuer/segno (Python) Encoder make_mecard_data() / make_mecard(); escapes \, ;, : and "; repeats TEL, EMAIL, URL; builds ADR from 7 comma-joined parts 14
2amigos/qrcode-library (PHP) Encoder MeCardFormat with name, sound, phone, video phone, email, note, birthday, address, URL, nickname and, since 4.0, ORG: 15
Google ML Kit Decoder SDK Contact-info result from VCARD or MECARD; raw value recommended for full data 16
bwip-js / BWIPP Renderer No MeCard logic: the payload is plain qrcode data. BWIPP accepts any byte values (default reader interpretation ISO/IEC 8859-1, ECI for others) and an eclevel option of L, M (default), Q or H 1718

The playground builds the MeCard string with Barcoder's mecard encoder and renders it with bwip-js as a QR Code at level M. Its default card is MECARD:N:Doe,Jane;TEL:+12125550123;EMAIL:jane.doe@example.com;;. The phone number is in 555-0100 to 555-0199, which NANPA keeps reserved as fictitious, non-working numbers 23, and the e-mail domain example.com is reserved by IANA for examples 24. The leading + is outside DOCOMO's TEL: character set (#, *, digits) 2, though ZXing's generator keeps it 10.

Comparison

  • MeCard vs vCard (vCard QR). vCard 4.0 (RFC 6350, August 2011) is an IETF format for contact data: BEGIN:VCARD, VERSION:4.0 immediately after it, and an FN property are required, the charset is fixed at UTF-8, and lines over 75 octets should be folded 20. vCard escapes commas and semicolons with a backslash and writes newlines as \n 20; MeCard escapes ¥/\, :, ; and data commas 2. ZXing calls vCard "a bit verbose for use in 2D barcodes" and MeCard "compact" 7. MeCard carries ten DOCOMO properties 1; job title, organisation and typed numbers need vCard (ZXing only tolerates a non-standard ORG:) 8.
  • MeCard and WiFi QR. ZXing proposed the WIFI: network-config syntax as "a syntax like MECARD", with the same TAG:value; fields and closing ;; 7. ZXing's Wi-Fi escape list (\, ;, ,, ", :) is wider than DOCOMO's MeCard list, which has no " 72.
  • Sibling DOCOMO identifiers. MATMSG: (address, subject, body) and MEBKM: (title, URL) use the same grammar for e-mail and bookmarks 23.

Choose MeCard for the smallest code carrying a name, phones, e-mail and address; choose vCard when the card needs fields MeCard lacks or a formal specification.

Fun facts

  • ZXing's MeCard example uses the phone number 212-555-1212, which the same ZXing page labels "NYC Directory assistance" in its tel: example 7. It is not a fictitious number: NANPA lists 555-1212 as still in national use for Directory Assistance 23.
  • segno, a Python QR library, writes TELAV: and MEMO: where DOCOMO's table has TEL-AV: and NOTE: 141; ZXing's parser reads neither of those two spellings 8.

Status

Legacy origin, still read. i-mode's bar-code pages are gone from DOCOMO's live site (404 on 9 November 2026) and the archived copies are the only primary definition 119. The format is still implemented: ZXing's parser and generators are in its main repository, segno and qrcode-library ship encoders, and ML Kit names MECARD as an input to its contact parsing 810141516. There is no successor spec; vCard is the documented alternative.

Sources

Deployments

No country reports mention this standard by name.

Regions / aggregations not mapped to a single country

  • Universal
source · content/standards/mecard/index.md