Web開発
QR Code Generator / Reader
テキストまたはURLからQRコードを生成する、あるいはアップロードした画像から内容を読み取ります。
ここにQRコードが表示されます。
A QR code is a two-dimensional barcode that encodes text, a URL, or other data so a camera can read it instantly. This tool generates a QR code from text you type and, the other way around, reads the content out of an uploaded image — all in the browser.
How to use it
- Generate: type text or a URL and the QR code appears immediately, ready to download as an image.
- Read: upload an image containing a QR code and the tool decodes and displays its content.
- Raise the error-correction level if the code will be printed small or placed on an uneven surface.
Common uses
- A QR code on a business card, poster, or package that links to a website or contact page.
- Sharing a Wi-Fi password with guests without typing it manually (enter a WIFI:T:WPA;S:name;P:password;; string to encode it).
- Checking what a suspicious QR code actually contains before scanning it with a phone and opening the link.
Things to keep in mind
A higher error-correction level (H instead of L) makes the code more resistant to damage but also denser — it holds less data at the same physical size.
A QR code doesn't hide its content — anyone can read it the same way you did, so never encode passwords or private data in one.
よくある質問
誤り訂正レベル(L/M/Q/H)は何を変えますか?
約30%のHまでのより高いレベルは、一部が損傷または隠されていてもQRコードを読み取り可能に保ちますが、特定のサイズに収まるデータ量も減らします — 約7%のLは最も多くのデータを収容できますが、耐えられる損傷は最も少なくなります。
なぜ私のQRコード画像を読み取れないのですか?
読み取りにはjsqrライブラリを使用してローカルで画像をデコードします。ぼやけた、斜めの、または反射の強い写真では失敗することがあるため、良好なコントラストの鮮明で正面からの写真が最適です。
私のデータや画像はどこかにアップロードされますか?
いいえ、QRコードの生成と読み取りはどちらも、JavaScriptライブラリを使ってブラウザ内で完全に行われます — デバイスから何も出ていきません。
なぜQRコードに収まるデータ量はコンテンツの種類によって変わるのですか?
QRコードは数字、英数字、バイトという複数の符号化モードをサポートしており、それぞれ1文字あたりのビット数が異なります。数字モード(数字のみ)が最もコンパクトで、非ラテン文字のような任意のテキスト向けのバイトモードは最も多くのスペースを必要とするため、同じサイズのコードに収まる文字数が少なくなります。
QRコードに収まる最大の文字数はいくつですか?
コードのバージョンと誤り訂正レベルによって異なります——最大のバージョン(40)で最も低い訂正レベルLの場合、最大7089桁の数字または4296文字の英数字を収容できますが、実際には信頼できるスキャンのために数百文字を超えて使われることはまれです。