This page is an online two dimensional code generator which is written in PHP. It can generate QR Code, Data Matrix, Aztec Code and Micro QR Code.
Using the form on this page, you can create two dimensional code images that trigger various actions on the scanner device. Don’t forget to install Qrafter or Qrafter Pro (why two versions?) to scan and generate QR Codes if you have an iPhone or iPad. So far, this page created 4,995,000 codes since I started counting in January, 2010.
Please be sure to read the Notes and FAQ sections below before requesting help in the comments if you encounter any problems with code generation (Especially for Micro QR Codes or backslash characters you may encounter on some codes!).
This page is very popular and because of that, it gets an incredible amount of comment spam. Sometimes legitimate comments can get caught as spam and I can miss them, so if your comment does not appear after some time, you can contact me from the email address on my contact page.
READ THIS FIRST:
I am getting many questions about scanning the codes created on this generator. Most of them are about some problem with the scanner not detecting the content of the code properly. This generator follows established standards strictly and most scanner apps except Qrafter and Qrafter Pro for iOS don’t follow those standards completely. So, if you somehow end up with an unexpected result after scanning a code, it is because that your scanner was developed lousily. If you are on iOS, use Qrafter or Qrafter Pro for guaranteed standards compatibility. For other platforms, please contact the developers of your scanner app to tell them to start following the standards that were established for a reason.
Notes:
You can follow me or Qrafter on Twitter.
QR Code is far more widespread than Data Matrix, Aztec Code or Micro QR Code. Actually Micro QR Code is rarely used and is only given here as a technology preview. If you want to create a campaign for your products using a 2D Code, make sure that you are using QR Codes, not the other types.
Data Matrix and Aztec Code have significantly lower capacity (4096 alphanumeric characters for QR Code, 3067 for Aztec Code and 2335 for Data Matrix), so if you would like to encode a lot of text, select QR Code.
To create the best readable code for long URLs, use one of the URL shortening services so that the resulting code is as small as possible. I personally prefer bit.ly over the others.
Micro QR Code cannot hold more than 35 numeric and 21 uppercase alphanumeric characters, and it can hold even less characters when you use lowercase characters. When encoding a URL into a Micro QR Code, try using all uppercase characters for longer URLs. I don’t know of a scanner that supports Micro QR Code though.
If your input cannot be encoded, the generator will give a warning. In that case, lower the character count in your input and try again.
If your device cannot interpret the encoded 2D Code properly, it probably means your scanner program is written poorly or does not have the capability of decoding that particular code format; or your device does not accept that action, because all codes created by this script and the content within them are compliant to all necessary published standards (vCard standards, URL encoding schemes, NTT DoCoMo standards, etc.).
While we are talking on standards, let me open the topic up a little bit more. Sadly most scanners out there do not follow special character escaping standards. Characters like “:” or “;” are special characters in vCard, meCard or vEvent specifications, and they should be properly escaped for the input to be interpreted correctly. This generator follows these standards correctly, and so a URL field like “http://example.com” becomes “http\://example.com” after escaping. The problem is, some scanners do not know how to handle this escaped character and break altogether. If you encounter such problem, select No for Escape Special Characters in vCard, meCard or vEvent creation. But while you will be able to read those QR Codes in broken scanners, be aware that, your 2D Code will not be standards compliant and you may not be able to add a URL that includes a second colon (for example as a port number separator) or semicolon when you do that. If you are on iPhone or iPad, I strongly suggest that you ditch your broken scanner and download Qrafter or Qrafter Pro. They are fully compliant to said standards. This way, I hope that developers will be forced to create scanners that obey standards that were established for a reason.
Data Matrix, Aztec Code and Micro QR Code do not support characters other than ASCII because of their spec, so if your input has international characters, always use QR Code. Another caveat of Micro QR Code is that, it is not supported by most of the scanner programs out there. As for Kanji and Cyrillic characters, again, only QR Code should support them.
Always use dark colors for foreground color and light colors for background color. If there is not enough contrast between foreground and background colors, your device will most probably fail to decode the code. Another warning: The EPS version I had to use does not support transparency, so you should use another format if you are going to have transparent foreground or background in your codes.
Twitter Profile Image Overlay option overlays your Twitter profile image onto a code that includes your Twitter profile URL. Images created with this option will behave very oddly with vector image formats. You have been warned! 🙂
Currently you can do the following actions with 2D codes generated with this form:
- You can browse to a website.
- You can bookmark a website.
- You can make a phone call.
- You can send a short message.
- You can send an e-mail.
- You can create a vCard (v2.1 or v3.0) with coordinates to add a contact to your device.
- You can create a meCard to add a contact to your device.
- You can create a vCalendar event to add to your calendar.
- You can create iTunes app and review URLs for iOS devices.
- You can create
market://
URLs for searching for publishers or packages on Market app for Android. - You can create Foursquare venue URLs.
- You can create special
youtube://
URLs for YouTube app on iOS. - You can fetch and encode the latest tweet of a Twitter user.
- You can overlay a Twitter profile image over the code.
- You can create a mobile URL to tweet on Twitter.
- You can connect to a WIFI network on Android devices.
- You can read plain or free formatted text on your device.
You can change the block size of the generated image to make it bigger or smaller. Also, you can change the margin size of the image to add more quiet zone if your decoder cannot decode it (Especially Data Matrix seems to need bigger margin sizes). Error correction level for QR Code (ignored for other code types) can be set to 4 different values and higher values may cause the image to be decoded slightly slower. The 4 values can be explained like this:
- Low (L): Up to 7% of errors can be corrected.
- Medium-Low (M): Up to 15% of errors can be corrected.
- Medium-High (Q): Up to 25% of errors can be corrected.
- High (H): Up to 30% of errors can be corrected.
You can choose PNG, PDF, SVG or EPS outputs. SVG will output a vector image XML file, and you can edit it in applications like Adobe Illustrator or Inkscape.
Please be aware that while I make checks for illegal characters to protect my server, I do not check your input for a meaningful value.
The image generation is done using third party encoders. I have only written a handy PHP front end that formats your input and passes it to these encoders.
A note about printing from Roy, a fellow user of this generator: When codes are generated, they are created in RGB (my note: yes even if they are black and white, they are in RGB colorspace) and if they are used in printing, they should be converted to grayscale or CMYK so that, when printed, only the black plate is used. This ensures the highest edge resolution, particularly in smaller sizes.
QR Code Scanners:
The best scanner apps for iPhone and iPad are Qrafter and Qrafter Pro. They are available on the App Store. They are designed for both iPhone and iPad and Qrafter is free with advertisements, while Qrafter Pro is paid with no advertisements. They are able to understand all actions on this generator (and more) and are the most advanced scanners for QR Codes on iPhone and iPad.
For Android, the best option seems to be the Barcode Scanner app from ZXing.
For Nokia Maemo/Meego, you can use Mbarcode according to Ryks, another commenter.
For other devices, you may find one, suitable for your device from Kaywa or QuickMark.
QR Code is a registered trademark of DENSO WAVE INCORPORATED in the United States and other countries.
Qrafter is a registered trademark of Kerem Erkan in the United States, European Union and other countries.
FAQ:
Here is an updating list of frequently asked questions.
Q: Can I change the content of a code I created if I find a mistake?
A: The codes generated on this generator are standalone, which means they have no connection to this generator after being generated. This also means they include the content directly inside them, and if the content needs to change, the generated code image will change. Please test your code images with as many devices and scanner apps as possible to avoid any problems after printing the codes.
Q: Why do I get unwanted characters like a backslash (\) or semicolon (;) in the result when I scan a QR Code?
A: You are using a QR Code reader that cannot parse the contents of QR Codes correctly. Many readers are especially weak at parsing vCards. Use a proper app from the QR Code Scanners list on this page.
Q: Do you harvest the information I enter into this form?
A: No, I don’t use the information you enter to this form in any means. After you create your 2D Code, the information is removed from my server.
Q: Can I track the scan information for the 2D Codes I create on this generator?
A: You can’t track the 2D Codes you create on this generator unless you create your own trackable URL (for example a bit.ly URL) and then enter that URL to generate a QR Code for it on this page.
Q: Do the 2D codes that were created on this generator have an expiration date?
A: No, all codes generated on this generator can be used as long as you want.
Q: Can I use the codes I create on this generator commercially? Do I need to pay any fees?
A: You can use the codes created on this generator both commercially and personally. There are no fees to pay. The only favor I ask back is the promotion of Qrafter or Qrafter Pro on your site as your recommended reader app for iOS devices. But it is only a request, you are not obliged to do that. 🙂
Q: What is the minimum size for a QR Code so that it can be scanned with all devices?
A: The answer to this question cannot be given with exact proportions. New devices with autofocus cameras can scan very small QR Codes, but old devices that don’t have autofocus cameras will have problems with scanning codes smaller than one or two inches. Also it depends on the size of the information that you put into the QR Code. You need to test your QR Code with many devices, old and new to find the best compromise.
Q: Can I overlay an image on top of the QR Code like the one in “Twitter Profile Image Overlay” action of this generator?
A: Yes you can. Create a QR Code with highest error correction and select a vector output. This way, using your preferred image editor, you can overlay an image that’s up to 30% of the QR Code. Be careful not to overlay the image on top of the 3 alignment squares though.
I cannot seem to make this work with the iPad. Can u tell me if it does work or I am just using this wrong
Txs
What’s the exact problem?
Hi Kerem,
I am working on tagging and tracking QR codes through analytics tools. Since you get a very complex QR code with the tagged URL, I have been running the URL through a shortener prior to pushing it through the generator. In your generator, I see that the option is there to push to a shortener. Can you please tell me how this works so I know which URL to put in the “Web Site URL: *” field? The tagged or the shortened? Thank you for your time.
Hi Leanne,
If you already have a shortened URL, enter it and do not select any shortening options on the generator. If you have a long tracking URL and want to shorten it with the generator’s options, select one that suits your needs.
I would like to know if the information inserted into any of the generation fields in this application are saved in any databases on your server.
Hi Brian,
No, there is nothing kept on the server when you create a code. But you are surely welcome to use other generators on the web if you have any doubts.
Regarding the new site with tracking and API access…is this planned to be a free or paid service?
Thanks, Kerem, for a great app!
Hi Daniel,
It will probably be a paid service, but I did not decide it yet.
Looking forward to it. Especially if it is a script we can purchase outright. I’m looking for something comparable to ventipix with tracking functions.
Would like to be able to let my clients log in and see the tracking data, but not be able to edit anything. Just want to let them see what’s going on.
I agree about the app – but I am concerned about how people who use inferior apps will see my v-card on their devices.
Maybe I should incluede a link to download Qrafter in my v-card.
Yes, that should do the trick. Those apps have bugs that should be corrected and we cannot get QR Code industry to a better place unless we get rid of those bugs. The same goes with the generators too. You cannot imagine how Qrafter has to handle many different and erroneously created contact cards floating around.
I am pretty sure people who scan your card with a buggy app will try another one until they find a better one. In my experience, people mostly think it’s the reader app’s fault even though the contact card was generated erroneously (the opposite of the case here). So don’t worry about your card being scanned with one of those apps. 🙂
Great tool, thank you. When I generate a QR Code and scan with an iPhone I get this extra text:
In the email field “type=internet;”
In the URL field “type=WORK:”
I have tried various settings but nothing seems to work.
Thanks in advance for your help.
That’s the problem of your reader app. It’s probably inferior quality. Use Qrafter.
This is a truly handy utility – many thanks…
cant generate QR code for vcard…
It may be a browser problem. Try some browser other than IE.
Hi Kerem !
Thanks for sharing that great application that is your generator. I’m searching for a WordPress plugin that would do what does your app but I can’t find any as complete as yours.
Have you planned to set it as a WordPress plugin in the future ? Also, you say that you will add tracking and API system ; do you have a deadline about that ?
Thanks alot for your precisions.
Fanchy
Hi Fanchy,
I don’t have any plans for a WordPress plugin. Also I am unable to give a deadline for the tracking system at the moment.
Thanks Kerem for this excellent post and for your sweet QR Code Generator. I will be using QR Codes a lot more in the future.
@Gilles_Vitu
Is there a way to change the url of a QR code after its been created?
Please see earlier comments. You cannot unless you have your own server.
Hi Kerem,
I’m the author of a QRCode generator plug-in for FileMaker. Pro. Found your website when a customer (an orthodontist) wanted his billing system to make a QRCode with the patient’s next appointment. Scanning it is easier and more accurate for everyone. Thanks for your excellent iPhone app that make this possible!
I have a question about quoted characters in iCalendar, vEvent, and vCard entries. From your note above and common sense, you would need to quote:
backslash, semicolon, comma, newline, and colon. Is this the complete list? What about quote, double quote, and other control characters? I can’t find the definitive docs. Thanks!
Hi Dan,
You only have to escape comma, semicolon and colon. Also you have to replace newlines with “\n”. That’s all.
Perhaps there is some explanations out there.
It seems like organization and department are linked to each other. Option to turn on the department box in the generator might be worth to think of. (2 cents)
Hi Kerem,
I notice that you’ll be moving your QR code generator to a new domain in the next few months. Will the codes created today at this url, still work once you do that? Am I right in assuming that qr codes generated on your site actually have additional info, in the 1st few characters of the url that routes via your servers before out into the big wide world? How will this be maintained long term?
Simone
The codes generated on this generator are not bound to this site. When you generate them, you are done with this site and they would continue working even if this site would completely vanish from the internet.
Hi Kerem,
if I use your tool with free text and the text has UTF-6 characters, then QR has japanese characters. Is it a general problem?
Rainer
UTF-6? I never heard of any system that supports such character set.
The department box is filled with empty entity. It is likely that the department box is appeared in the iphone when the “organization” field in the generator is entered with details.
Department and organization are filled in the same line like ORG:Organization;Department
If department is empty, it is filled like ORG:Organization;
So you can’t separate them. I did not understand why an empty department field bothered you. It is not shown in the Address Book, it just shows while adding the contact only.
This site has been great to generator Vcard QR code. In particular I like to mention is “department” field has also been inserted in the iphone’s contact, even though there is no department box in this generator.
Would it possible to remove the “department” field after the Vcard QR code is being scanned into the iphone?
What does it fill in the department box in iPhone? I don’t have such problem with Qrafter on my iPhone.
Once you have created and printed out a QR Code, can you edit its information?
For example, I want to create a QR Code which announces a monthly promotion. I then hope to use the same QR Code the next month for a new promotion.
Is that possible?
You can’t do that if you don’t have your own webserver to redirect the URL elsewhere.
Looking for QR code generator solutions to link to my web site
many reps in my company would be interested in this as well.
Answer to Karen #44 – we find if we use Goo.gl for shortening, then go to the 7 block option, then convert to grayscaled and 300 dpi, we can go down to about 5/8″ square. We do this all the time and works great, except for the Iphone 3 & 3G. It has a bad focus problem. Other than that we have tried it on every phone out there and that is what we find to be the limit.
BTW, if you are using this in a 4 color process, you must convert to B&W as in this size format, even a tiny regstration misalignment on the plates makes the code unreadable. You are warned.
Roy