QR Code Generator

Create permanent QR codes for URLs, text, WiFi, vCard, email, SMS and location.

7 CONTENT TYPES PERMANENT QR CUSTOM COLORS & LOGO NO UPLOAD
Permanent QR · Never expires
Live Preview
Permanent 512 × 512 URL
Enter some content and click Generate QR Code
Your QR is permanent. It encodes your data directly — no redirects, no trackers, no expiration. Download it and use it forever.
Recent QR Codes

QR codes you create will appear here.

Step 1 — Content Type
Step 2 — Content

Include the full URL starting with https://

Step 3 — Customize
Quick palettes
512 px
4

Max content: ~2331 bytes at this level.

Add a Logo (optional)

Click or drop a logo image

PNG with transparency works best — max 200×200 px suggested
Logo preview toolbajar.png
20%
8
When you add a logo, we automatically boost the error correction to H so the QR still scans. Keep the logo under 25% of the QR size for best reliability.
Batch Mode

Permanent QR Codes

Static QR codes that never expire, never redirect and never depend on our servers.

7 Content Types

URL, text, WiFi, vCard, email, SMS and location — all in one tool.

Custom Colors & Logo

Pick any colours, add your logo, adjust size and error correction.

100% Private

QR codes are generated locally in your browser. Nothing is uploaded.

What is the QR Code Generator?

The ToolBajar QR Code Generator is a free, browser-based tool for creating permanent QR codes of almost any kind — website links, plain text, WiFi credentials, contact cards, emails, SMS messages, or geographic locations. All QR codes are static, meaning the data is encoded directly into the pattern with no redirects and no expiration. Choose your content type, customize the colours, size and error correction, add your own logo in the centre, and download a PNG or SVG. Everything runs locally in your browser — no uploads, no sign-up, no watermarks.

Complete Guide to QR Codes

How to use this tool

  1. Choose a Content Type

    Pick URL, Text, WiFi, vCard, Email, SMS or Location from the tabs.

  2. Enter Your Content

    Fill in the fields. Then click the green Generate QR Code button at the top.

  3. Customize (Optional)

    Change colours, size, margin, error correction — or upload a logo for the centre.

  4. Download — Permanent Forever

    Save as PNG for screen use or SVG for print. Every code is permanent and works offline.

Who should use this tool?

Small Businesses

WiFi codes for guests, menus for restaurants, feedback forms and promo links — all free and permanent.

Marketers

Add landing pages to print campaigns, packaging and events without paying a monthly QR subscription.

Professionals

Create vCard QR codes for business cards so contacts save every detail in one scan.

Everyday Users

Share WiFi with guests without reading passwords aloud, or send contacts and locations in one tap.

Frequently Asked Questions

Yes — completely free, with no sign-up, no watermark, no expiration and no limit on how many you generate.

Yes. Every code we generate is "static" — it encodes your data directly, without any redirect through a third-party server. Static codes never expire and never depend on us being online. Even if ToolBajar disappeared tomorrow, your QR code would still work.

Many "free" QR generators use dynamic QR codes that redirect through their own servers. Those servers go offline after a trial period, and the QR code stops working. That's how they upsell paid plans. We avoid this entirely by generating only static, self-contained QR codes.

QR codes have a maximum content size that depends on the error correction level. We now auto-reduce the level when your content is too long — so most cases just work. If even the lowest level can't fit it, you'll see a clear warning with suggestions: try a shorter URL, reduce the message length, or (for vCards) remove optional fields.

Yes — click "Add a Logo" and upload any image. We automatically set the error correction to H (High) so the code still scans reliably. For best results, keep the logo under 25% of the QR size and use a PNG with transparency.

PNG is a raster image — great for screens, but becomes blurry when scaled up. SVG is a vector format that stays crisp at any size, so it's better for print and for editing in tools like Illustrator or Figma.

No. Everything runs locally in your browser using the qrcode.js library. Nothing you type is sent to any server.

`); w.document.close(); setTimeout(() => { w.focus(); w.print(); }, 200); } catch (e) { toast('Print failed', 'error'); } }); /* ---------------- HISTORY ---------------- */ function loadHistory() { try { const raw = localStorage.getItem(HISTORY_KEY); if (raw) state.history = JSON.parse(raw); if (!Array.isArray(state.history)) state.history = []; state.history = state.history.slice(0, 12); } catch (e) { state.history = []; } } function saveHistory() { try { localStorage.setItem(HISTORY_KEY, JSON.stringify(state.history)); } catch (e) {} } function addToHistory(payload) { state.history = state.history.filter(x => x.payload !== payload); state.history.unshift({ payload: payload, type: state.type, fg: state.fg, bg: state.bg, errorLevel: state.errorLevel, margin: state.margin, ts: Date.now() }); state.history = state.history.slice(0, 12); saveHistory(); renderHistory(); } async function renderHistory() { $historyGrid.innerHTML = ''; if (!state.history.length) { $historyGrid.innerHTML = '

QR codes you create will appear here.

'; return; } for (const item of state.history) { const wrap = document.createElement('div'); wrap.className = 'history-item'; wrap.title = item.payload.length > 60 ? item.payload.slice(0, 60) + '…' : item.payload; const cv = document.createElement('canvas'); try { await QRCode.toCanvas(cv, item.payload, { width: 52, margin: Math.min(item.margin || 2, 4), color: { dark: item.fg || '#4F1271', light: item.bg || '#FFFFFF' }, errorCorrectionLevel: item.errorLevel || 'M' }); } catch (e) {} const label = document.createElement('div'); label.className = 'hi-label'; label.textContent = item.payload.replace(/^(https?:\/\/)?(www\.)?/, '').slice(0, 14) || 'QR'; wrap.appendChild(cv); wrap.appendChild(label); wrap.addEventListener('click', () => { state.type = item.type || 'url'; state.fg = item.fg || '#4F1271'; state.bg = item.bg || '#FFFFFF'; state.errorLevel = item.errorLevel || 'M'; state.margin = typeof item.margin === 'number' ? item.margin : 4; $fgColor.value = state.fg; $bgColor.value = state.bg; $errorLevel.value = state.errorLevel; $qrMargin.value = state.margin; $qrMarginVal.textContent = state.margin; renderPalettes(); updateCapacityHint(); document.querySelectorAll('.type-tab').forEach(b => { b.classList.toggle('active', b.getAttribute('data-type') === state.type); }); document.querySelectorAll('.content-panel').forEach(p => { p.classList.toggle('hidden', p.getAttribute('data-panel') !== state.type); }); if (state.type === 'url' && document.getElementById('urlInput')) { document.getElementById('urlInput').value = item.payload; } else if (state.type === 'text' && document.getElementById('textInput')) { document.getElementById('textInput').value = item.payload; } state.hasQR = false; generate(); }); $historyGrid.appendChild(wrap); } } $clearHistoryBtn.addEventListener('click', () => { if (!state.history.length) return; Swal.fire({ title: 'Clear history?', text: 'This will remove all saved QR codes from history.', icon: 'warning', showCancelButton: true, confirmButtonColor: '#dc2626', cancelButtonColor: '#783F8E', confirmButtonText: 'Yes, clear' }).then(r => { if (r.isConfirmed) { state.history = []; saveHistory(); renderHistory(); toast('History cleared', 'info'); } }); }); /* ---------------- BATCH ---------------- */ $toggleBatchBtn.addEventListener('click', () => { batchOn = !batchOn; if (batchOn) { $batchPanel.classList.remove('hidden'); $toggleBatchBtn.innerHTML = ' Disable'; } else { $batchPanel.classList.add('hidden'); $toggleBatchBtn.innerHTML = ' Enable'; } }); $generateBatchBtn.addEventListener('click', async () => { const lines = $batchInput.value.split(/\r?\n/).map(l => l.trim()).filter(Boolean).slice(0, 50); if (!lines.length) { toast('Enter one item per line', 'info'); return; } $batchResults.innerHTML = ''; batchQrs.length = 0; for (let i = 0; i < lines.length; i++) { const txt = lines[i]; const row = document.createElement('div'); row.className = 'batch-row'; row.innerHTML = `
#${i + 1}
`; row.querySelector('.batch-row-text').textContent = txt; const cv = row.querySelector('canvas'); try { await QRCode.toCanvas(cv, txt, { width: 60, margin: state.margin, color: { dark: state.fg, light: state.bg }, errorCorrectionLevel: state.errorLevel }); batchQrs.push({ canvas: cv, text: txt }); } catch (e) { row.querySelector('.batch-row-text').textContent = 'Invalid: ' + txt; } row.querySelector('.batch-dl').addEventListener('click', () => { try { const url = cv.toDataURL('image/png'); const a = document.createElement('a'); a.href = url; a.download = 'qr-' + (i + 1) + '.png'; document.body.appendChild(a); a.click(); document.body.removeChild(a); } catch (e) {} }); $batchResults.appendChild(row); } if (batchQrs.length) { $downloadBatchBtn.disabled = false; toast(batchQrs.length + ' QR codes generated!'); } }); $downloadBatchBtn.addEventListener('click', () => { if (!batchQrs.length) return; let i = 0; function next() { if (i >= batchQrs.length) { toast('All downloaded!'); return; } try { const url = batchQrs[i].canvas.toDataURL('image/png'); const a = document.createElement('a'); a.href = url; a.download = 'qr-' + (i + 1) + '.png'; document.body.appendChild(a); a.click(); document.body.removeChild(a); } catch (e) {} i++; setTimeout(next, 300); } next(); }); /* ---------------- INIT ---------------- */ async function init() { renderPalettes(); updateCapacityHint(); loadHistory(); await renderHistory(); setTimeout(() => { generate(); }, 200); } init(); })();