A from-scratch QR code generator built without external libraries. Features a clean web interface and demonstrates complete QR code encoding implementation including error correction.
- Zero Dependencies - Pure JavaScript implementation
- Complete QR Spec - Supports all QR code versions and error correction levels
- Responsive Design - Works on desktop and mobile
- Real-time Generation - Instant QR code creation as you type
- Educational - Well-documented code for learning purposes
Try it live: QR Generator
- Enter text:
"Hello World" - Press the "Generate QR Code!" button
- Download or copy the generated QR code
- Encoding: Supports Numeric, Alphanumeric, Byte, and Kanji modes
- Error Correction: Reed-Solomon error correction (L, M, Q, H levels)
- Versions: QR versions 1 - 40 (21x21 to 177x177 modules)
- Masking: All 8 mask patterns implemented
- Framework: Vite + React
- Styling: SCSS with responsive design
- Canvas: HTML5 Canvas for QR code rendering
git clone https://github.com/nicholasTropea/QRGenerator.git
cd QRGenerator
npm install
npm run devQRGenerator/
├── README.md
├── index.html # Main HTML file
└── src/
├── main.jsx # Main JSX file
├── App.jsx
├── App.css
├── index.scss
├── utils/ # JS files of QR Generator implementation
│ ├── main.js # Main JS file
│ ├── kanji_mode_characters_table.js
│ ├── raw_data_encoding_constants.js
│ └── reed_solomon_constants.js
├── pages/ # JSX files of pages Home and About
├── components/ # JSX files of components
├── styles/ # SCSS files for pages and components
└── assets/ # Images
Contributions are welcome! This project is educational and perfect for:
- Learning QR code algorithms
- Improving the UI/UX
- Adding new features
- Optimizing performance
- Fork the repository
- Create a feature branch:
git checkout -b feature-name - Make your changes
- Test thoroughly
- Submit a pull request
- Use ES6+ features
- Comment complex algorithms
- Keep functions pure when possible
- Follow existing naming conventions
MIT License - see LICENSE.md for details
- QR Code Generation guide by Thonky Game Guides
- Reed-Solomon error correction algorithm
- Inspiration from the need to understand QR codes from first principles
Built with ❤️ and curiosity about how QR codes actually work
