Online QR Code Generator and Decoder Tool is a free online tool that helps you create what you need with one click. Use it right on this page, with no sign-up and nothing to install.
How to use the Online QR Code Generator and Decoder Tool
- Type or paste your input in “Enter Text or URL for QR Code”.
- Upload your file with “Upload QR Code Image”.
- Click “Generate QR Code”.
- Your result shows on the page. Use “Download QR Code” to save it.
Why use this Online QR Code Generator and Decoder Tool?
The Online QR Code Generator and Decoder Tool is handy for testing, design, writing and fun. It is free, easy to use and works on any device.
- Get new results with one click
- Run it again as often as you like
- Handy for ideas, testing and quick drafts
Online QR Code Generator and Decoder Tool – frequently asked questions
Is the Online QR Code Generator and Decoder Tool free to use?
Yes. The Online QR Code Generator and Decoder Tool on Ilmhunt is free to use, and you do not need to create an account.
Do I need to install anything?
No installation is needed. Open this page and use the tool right away.
Is my data safe when I use the Online QR Code Generator and Decoder Tool?
The tool runs in your browser, so what you enter is processed on your own device and is not sent to our servers.
Can I generate results more than once?
Yes. Use the Online QR Code Generator and Decoder Tool again whenever you want a new result.
More free Generators
- Generate Lorem Ipsum Text
- Online Random Text Generator (based on user-input seed words)
- Fibonacci Sequence Generator Tool
- Magic Square Generator
- Online Word Search Generator
Browse all Generators on Ilmhunt, or see all free online tools.
Related tools
- Online Italian Fiscal Code Generator
- Random Password Generator
- Reverse Text Generator
- Online Text to Speech Generator
- Online Citation Generator Tool
- Online Random Text Generator (based on user-input seed words)
- Fibonacci Sequence Generator Tool
- Magic Square Generator
More tools in this collection · All free online tools
Embed this tool on your website — free
Copy the code below to add this working tool to your own page. A small credit link stays with it — that’s all we ask.
<div class="container">
<h1>QR Code Generator and Decoder</h1>
<!-- QR Code Generator Section -->
<div class="input-container">
<label for="textInput">Enter Text or URL for QR Code:</label><br>
<input type="text" id="textInput" placeholder="Enter text or URL" oninput="generateQRCode()">
<button id="generateButton" onclick="generateQRCode()">Generate QR Code</button>
</div>
<div id="qrCodePreview"></div>
<button id="downloadButton" onclick="downloadQRCode()">Download QR Code</button>
<!-- QR Code Decoder Section -->
<div class="decoder-container">
<h3>QR Code Decoder</h3>
<label for="fileInput">Upload QR Code Image:</label><br>
<input type="file" id="fileInput" accept="image/*" onchange="decodeQRCode()">
<div id="decodedResult"></div>
</div>
</div>
<script>
// Generate QR Code
function generateQRCode() {
const text = document.getElementById('textInput').value;
const previewContainer = document.getElementById('qrCodePreview');
if (text) {
QRCode.toDataURL(text, { width: 300, margin: 2 }, function (err, url) {
previewContainer.innerHTML = `<img decoding="async" src="${url}" alt="QR Code Preview" width="300" />`;
});
} else {
previewContainer.innerHTML = ''; // Clear if no input
}
}
// Download QR Code as Image
function downloadQRCode() {
const text = document.getElementById('textInput').value;
if (text) {
QRCode.toCanvas(document.createElement('canvas'), text, { width: 300, margin: 2 }, function (err, canvas) {
const link = document.createElement('a');
link.href = canvas.toDataURL();
link.download = 'qrcode.png';
link.click();
});
}
}
// Decode QR Code from Uploaded Image
function decodeQRCode() {
const fileInput = document.getElementById('fileInput');
const file = fileInput.files[0];
if (file) {
const reader = new FileReader();
reader.onload = function(e) {
const image = new Image();
image.onload = function() {
// Decode using the jsQR library
const canvas = document.createElement('canvas');
const ctx = canvas.getContext('2d');
canvas.width = image.width;
canvas.height = image.height;
ctx.drawImage(image, 0, 0, image.width, image.height);
const imageData = ctx.getImageData(0, 0, canvas.width, canvas.height);
const decoded = jsQR(imageData.data, canvas.width, canvas.height);
if (decoded) {
document.getElementById('decodedResult').innerText = `Decoded Content: ${decoded.data}`;
} else {
document.getElementById('decodedResult').innerText = 'Failed to decode the QR code.';
}
};
image.src = e.target.result;
};
reader.readAsDataURL(file);
}
}
</script>
<style>html,body{height:auto!important;min-height:0!important;max-height:none!important}</style><script>(function(){function wpcPost(){try{parent.postMessage({wpcId:106,wpcH:document.body.scrollHeight},'*');}catch(e){}}window.addEventListener('load',wpcPost);try{new MutationObserver(wpcPost).observe(document.body,{childList:true,subtree:true,attributes:true});}catch(e){}window.addEventListener('resize',wpcPost);setInterval(wpcPost,600);})();</script></body>
</html>
" id="wpc-frame-106" class="wpc-embed-frame" style="width:100%;border:0;display:block;overflow:hidden;" scrolling="no"></iframe>
<p><a href="https://ilmhunt.com/online-qr-code-generator-and-decoder-tool/" target="_blank" rel="noopener">Online QR Code Generator and Decoder Tool</a> by <a href="https://ilmhunt.com/" target="_blank" rel="noopener">IlmHunt</a> — free online tools</p>
También disponible en español: Generador de Códigos QR para Referencias.
