What is the spec for formatting data in QR codes? I can not find it anywhere

Jonathan Vanasco picture Jonathan Vanasco · Sep 14, 2010 · Viewed 45.4k times · Source

I'm specifically asking if, and what, is the specification for formatting the text inside a QR code - not how to generate a code (which I can do).

I need to put hCard data into a QR code, however I don't know how to mark the QR code as VCF data (versus URL, text, etc) so the decoder knows what to do.

All the info I've seen online has to do with generating the QR code, not formatting the data inside.

Answer

Sean Owen picture Sean Owen · Sep 14, 2010

There is no official specification for this -- the QR code spec does not say anything about the contents. Everything I know about the commonly-used and de facto formats and conventions is summarized in this wiki: https://github.com/zxing/zxing/wiki/Barcode-Contents