QR Code Generator
Developer & Author —Egor VolchenkoThis QR code generator has text input, size, error-correction, margin, PNG download, and SVG copy controls. However, the current visible preview draws a pattern from a text hash rather than encoding a valid QR payload. Its PNG and SVG exports use that same pattern, so treat this workflow as blocked for creating scannable codes.
How to use QR Code Generator
Start with a known test sample so you can check the result against the expected behavior.
Inspect the QR preview controls
- Type a short non-sensitive sample into Text, URL or Data to Encode. The preview updates while you edit.
- Choose Size (pixels), Error Correction, and Quiet Zone (Margin). The correction selector is present, but the current browser pattern does not implement error correction.
- Click Generate QR Code when needed. The remote response is stored separately and does not replace the canvas used by the visible preview.
- Download PNG saves the canvas and Copy SVG copies the same pattern as SVG. These exports are not valid QR encodings and must not be used as scannable codes.
- Use Clear where shown or the input clear control to remove the message. Empty input redraws the built-in default pattern rather than leaving a blank preview.
Enter Million tools test, choose 256 x 256 px, M - Medium (~15%), and 4 modules (standard). A grid appears, but it does not contain a valid encoding of that message. The same message is encodable by the separate API; its result is not wired to these export buttons.
Why a QR-like pattern is insufficient
A readable QR symbol needs payload codewords, error-correction codewords, format information, and the required layout rules. The current canvas routine fills data cells using a seeded pattern instead. It even produces the same matrix for different short inputs with the same hash, so visual changes cannot confirm a faithful encoding.
What size and margin controls currently change
Size (pixels) offers 180, 256, 350, and 512 pixel targets. The canvas uses whole modules, so its actual dimensions can be smaller than the selected target. Quiet Zone (Margin) adds 1, 2, or 4 blank modules. Changing Error Correction does not change the generated matrix in the current routine.
Frequently asked questions
No. Download PNG saves the current pattern canvas, which does not implement QR payload encoding. A familiar finder-pattern appearance is not enough to make the image a valid code.
API — QR Preview and Export
Automate this tool directly from your scripts, CI/CD pipelines, or backend applications via HTTP POST.
https://million.tools/api/v1/run/qr-code-generator Request Parameters (JSON / Form Data)
-
start(orinput)Text, URL or Data to Encode
-
qr_sizeSize (pixels)
180256350512 -
qr_eccError Correction
LMQH -
qr_marginQuiet Zone (Margin)
124
curl -X POST https://million.tools/api/v1/run/qr-code-generator \
-H "Content-Type: application/json" \
-d '{"start":"https://million.tools","qr_size":256}' const response = await fetch('https://million.tools/api/v1/run/qr-code-generator', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
"start": "https://million.tools",
"qr_size": 256
}),
});
const data = await response.json();
console.log(data.result); import requests
response = requests.post(
'https://million.tools/api/v1/run/qr-code-generator',
json={
"start": "https://million.tools",
"qr_size": 256,
},
timeout=15,
)
data = response.json()
print(data['result']) $ch = curl_init('https://million.tools/api/v1/run/qr-code-generator');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Content-Type: application/json'],
CURLOPT_POSTFIELDS => json_encode([
'start' => 'https://million.tools',
'qr_size' => 256,
]),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
echo $response['result'] ?? ''; {
"status": "success",
"tool": "qr-code-generator",
"service": "qr_code_generator",
"result": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAAklEQVR4AewaftIAAAW4SURBVO3BURJjSREEwcgy3f/KyfwDajP0tpGmwj39A0krDZLWGiStNUhaa5C01iBprUHSWoOktQZJaw2S1hokrTVIWmuQtNYgaa1B0lqDpLUGSWsNktZ68ZAkbNSWG5Jw0pYnJOGkLZ9KwklbTpKwUVs+NUhaa5C01iBprUHSWoOktQZJaw2S1hokrfXiorb8kiT8kiTckoRPteWWtvySJNwwSFprkLTWIGmtQdJag6S1BklrDZLWGiSt9eLLJOGGttyShE+15QlJOGnLSRI+lYSTttyShBva8i0GSWsNktYaJK01SFprkLTWIGmtQdJag6S1XmiVtpwkQTsMktYaJK01SFprkLTWIGmtQdJag6S1XugnJOGbtOVTSdD/1yBprUHSWoOktQZJaw2S1hokrTVIWmuQtNaLL9MW/bu23JKEkyR8qi3fpC3bDJLWGiStNUhaa5C01iBprUHSWoOktQZJa724KAn6z9ryThJO2nKShJO2nCThpC3vJOGkLU9Igv7dIGmtQdJag6S1BklrDZLWGiStNUhaa5C01ouHtEX/nLacJOGkLX+btuh/M0haa5C01iBprUHSWoOktQZJaw2S1hokrZX+wQOScNKWkyT8krY8IQnvtOWWJDyhLTck4Ze05VsMktYaJK01SFprkLTWIGmtQdJag6S1BklrvbgoCSdt+VQSTtpySxJuSMItbfkWbTlJwklbbkjCSVtuGCStNUhaa5C01iBprUHSWoOktQZJa714SFuekIRvkYRb2vJOEk7acksSPtWWX5OEd9ryhCSctOVTg6S1BklrDZLWGiStNUhaa5C01iBprUHSWukfPCAJf5u2nCThhracJOEJbbkhCb+mLTck4aQtnxokrTVIWmuQtNYgaa1B0lqDpLUGSWsNktZ6cVFbnpCEd9pykoSTJNzSlk+15SQJJ0l4QlveactJEp7QlpMkfCoJv2SQtNYgaa1B0lqDpLUGSWsNktYaJK01SFrrxZdJwg1teUISbkjCSVtO2vKEJHwqCSdteUISTtpykoR32nKShJO23DBIWmuQtNYgaa1B0lqDpLUGSWsNktYaJK314ge15Z0knLTlJAlPaMtJEj6VhFvacpKETyXhpC1PSMK3SMJJWz41SFprkLTWIGmtQdJag6S1BklrDZLWGiSt9UL/VVtOknCShJO2vJOEJ7TlCUk4acs7SThpy0kSbmnLp9pykoQbBklrDZLWGiStNUhaa5C01iBprUHSWi/+Qm15QhJO2nJDW06ScEtbbkjCL0nCSVtO2nLDIGmtQdJag6S1BklrDZLWGiStNUhaa5C0VvoH+kcl4aQtNyThCW05ScKn2nJLEj7Vll8ySFprkLTWIGmtQdJag6S1BklrDZLWGiSt9eIhSdioLSdtOUnCp9py0paTJJwk4aQt7yThCUk4acsT2vJOEm5py6cGSWsNktYaJK01SFprkLTWIGmtQdJag6S1XlzUll+ShCck4VNteUISntCWb9GWW5LwTltOkvAtBklrDZLWGiStNUhaa5C01iBprUHSWoOktV58mSTc0JZfkoSTtjyhLSdJuCEJ36Qt7yThlwyS1hokrTVIWmuQtNYgaa1B0lqDpLUGSWu90E9oyxPa8oS23JCEJ7TlJAknSfibDJLWGiStNUhaa5C01iBprUHSWoOktV7oJyThlrY8IQmfasstbTlJwqfacpKEGwZJaw2S1hokrTVIWmuQtNYgaa1B0lqDpLVefJm2/G3acpKEd9pykoSTtjwhCTck4aQtJ0m4oS2/ZJC01iBprUHSWoOktQZJaw2S1hokrTVIWuvFRUnYKAknbfklbfkWSfgWSfglg6S1BklrDZLWGiStNUhaa5C01iBprUHSWukfSFppkLTWIGmtQdJag6S1BklrDZLWGiStNUhaa5C01iBprUHSWoOktQZJaw2S1hokrTVIWutf/Bl+JptFaJkAAAAASUVORK5CYII=",
"results": {
"result": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAAklEQVR4AewaftIAAAW4SURBVO3BURJjSREEwcgy3f/KyfwDajP0tpGmwj39A0krDZLWGiStNUhaa5C01iBprUHSWoOktQZJaw2S1hokrTVIWmuQtNYgaa1B0lqDpLUGSWsNktZ68ZAkbNSWG5Jw0pYnJOGkLZ9KwklbTpKwUVs+NUhaa5C01iBprUHSWoOktQZJaw2S1hokrfXiorb8kiT8kiTckoRPteWWtvySJNwwSFprkLTWIGmtQdJag6S1BklrDZLWGiSt9eLLJOGGttyShE+15QlJOGnLSRI+lYSTttyShBva8i0GSWsNktYaJK01SFprkLTWIGmtQdJag6S1XmiVtpwkQTsMktYaJK01SFprkLTWIGmtQdJag6S1XugnJOGbtOVTSdD/1yBprUHSWoOktQZJaw2S1hokrTVIWmuQtNaLL9MW/bu23JKEkyR8qi3fpC3bDJLWGiStNUhaa5C01iBprUHSWoOktQZJa724KAn6z9ryThJO2nKShJO2nCThpC3vJOGkLU9Igv7dIGmtQdJag6S1BklrDZLWGiStNUhaa5C01ouHtEX/nLacJOGkLX+btuh/M0haa5C01iBprUHSWoOktQZJaw2S1hokrZX+wQOScNKWkyT8krY8IQnvtOWWJDyhLTck4Ze05VsMktYaJK01SFprkLTWIGmtQdJag6S1BklrvbgoCSdt+VQSTtpySxJuSMItbfkWbTlJwklbbkjCSVtuGCStNUhaa5C01iBprUHSWoOktQZJa714SFuekIRvkYRb2vJOEk7acksSPtWWX5OEd9ryhCSctOVTg6S1BklrDZLWGiStNUhaa5C01iBprUHSWukfPCAJf5u2nCThhracJOEJbbkhCb+mLTck4aQtnxokrTVIWmuQtNYgaa1B0lqDpLUGSWsNktZ6cVFbnpCEd9pykoSTJNzSlk+15SQJJ0l4QlveactJEp7QlpMkfCoJv2SQtNYgaa1B0lqDpLUGSWsNktYaJK01SFrrxZdJwg1teUISbkjCSVtO2vKEJHwqCSdteUISTtpykoR32nKShJO23DBIWmuQtNYgaa1B0lqDpLUGSWsNktYaJK314ge15Z0knLTlJAlPaMtJEj6VhFvacpKETyXhpC1PSMK3SMJJWz41SFprkLTWIGmtQdJag6S1BklrDZLWGiSt9UL/VVtOknCShJO2vJOEJ7TlCUk4acs7SThpy0kSbmnLp9pykoQbBklrDZLWGiStNUhaa5C01iBprUHSWi/+Qm15QhJO2nJDW06ScEtbbkjCL0nCSVtO2nLDIGmtQdJag6S1BklrDZLWGiStNUhaa5C0VvoH+kcl4aQtNyThCW05ScKn2nJLEj7Vll8ySFprkLTWIGmtQdJag6S1BklrDZLWGiSt9eIhSdioLSdtOUnCp9py0paTJJwk4aQt7yThCUk4acsT2vJOEm5py6cGSWsNktYaJK01SFprkLTWIGmtQdJag6S1XlzUll+ShCck4VNteUISntCWb9GWW5LwTltOkvAtBklrDZLWGiStNUhaa5C01iBprUHSWoOktV58mSTc0JZfkoSTtjyhLSdJuCEJ36Qt7yThlwyS1hokrTVIWmuQtNYgaa1B0lqDpLUGSWu90E9oyxPa8oS23JCEJ7TlJAknSfibDJLWGiStNUhaa5C01iBprUHSWoOktV7oJyThlrY8IQmfasstbTlJwqfacpKEGwZJaw2S1hokrTVIWmuQtNYgaa1B0lqDpLVefJm2/G3acpKEd9pykoSTtjwhCTck4aQtJ0m4oS2/ZJC01iBprUHSWoOktQZJaw2S1hokrTVIWuvFRUnYKAknbfklbfkWSfgWSfglg6S1BklrDZLWGiStNUhaa5C01iBprUHSWukfSFppkLTWIGmtQdJag6S1BklrDZLWGiStNUhaa5C01iBprUHSWoOktQZJaw2S1hokrTVIWutf/Bl+JptFaJkAAAAASUVORK5CYII="
}
}
Hi! I’m a WordPress developer with over 10 years of experience. I love Tailwind CSS, clean code, and intuitive interfaces. I’m currently working on million.tools — a service with convenient online tools for everyday tasks. I’m building it from scratch with great attention to detail and user experience.
Ratings & feedback 0
Share your experience with this tool.
No feedback yet
Be the first to leave a review or rating.