A lightweight QR code generator built with React, Vite, and TypeScript.
- Generate QR codes from free-form text or URLs
- Adjustable size, margin, and color
- Add a logo to the QR code
- Live preview in the browser
- Download generated QR codes as PNG images
- Clone the repository:
git clone https://github.com/ramjam97/qr-generator.git
cd qr-generator- Install dependencies:
npm install- Start the development server:
npm run devOpen http://localhost:5173 (or the port Vite shows) in your browser.
npm run dev: Start the Vite development servernpm run build: Create a production buildnpm run preview: Preview the production build locallynpm run lint: Run ESLint across the project
- Enter the text or URL you want encoded in the QR field.
- Customize size, margin and color using the controls.
- (Optional) Upload or select a logo to embed in the QR code.
- Click
Generateto update the preview, thenDownloadto save a PNG.
You can try the hosted demo here: https://ramjam97.github.io/qr-generator/
Preview image:
- React
- Vite
- TypeScript
- Tailwind CSS + DaisyUI
qr-code-stylingfor QR rendering- PrimeIcons
This project is licensed under the MIT License. See the LICENSE file for details.
