Skip to content

A powerful, customizable JavaScript QR code generator built with HTML, CSS, and vanilla JavaScript. Create stunning QR codes with custom styles, colors, and embedded images.

License

NickFrost2/QR_Code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QR Code Generator

A powerful, customizable JavaScript QR code generator built with HTML, CSS, and vanilla JavaScript. Create stunning QR codes with custom styles, colors, and embedded images. Features a bookmark system to save and manage your QR codes. Perfect for developers, marketers, and anyone needing beautiful, shareable QR codes.

JavaScript HTML5 CSS3 License PRs Welcome Open Source

Features

  • Customizable QR Codes : Choose from 6 different dot styles (Square, Rounded, Classy, Pointillism, and more)
  • Color Customization : Personalize dot colors to match your brand or preferences
  • Image Embedding : Add logos or images to the center of your QR codes
  • Flexible Sizing : Adjust width and height for any use case
  • Multiple Export Formats : Download as PNG, JPG, SVG, or WEBP
  • Bookmark System : Save and manage your favorite QR codes locally
  • Responsive Design : Works seamlessly across desktops, tablets, and mobile devices
  • Lightweight & Fast : Built with vanilla JavaScript for optimal performance
  • Open Source : Fork, contribute, or customize to suit your needs!

Demo

Try the live app here 🚀

Installation

  1. Clone the repository:
    git clone https://github.com/NickFrost2/JSPlayz.git
  2. Navigate to the project directory:
    cd JSPlayz/advanced/QR_Code
  3. Open index.html in a browser to run the app locally, or serve it using a local server (e.g., with VS Code's Live Server extension).

Usage

Creating a QR Code

  1. Enter Text : Type or paste the text/URL you want to encode in the text area
  2. Add Image (Optional): Upload a logo or image to embed in the QR code center
  3. Customize Style :
  • Choose from 6 dot styles in the "Dots Options" section
  • Select a custom dot color using the color picker
  1. Adjust Size : Set custom width and height dimensions
  2. Download : Click "Download" and select your preferred format (PNG, JPG, SVG, or WEBP)

Managing Bookmarks

  • Click the bookmark folder icon to open the sidebar
  • Save frequently used QR codes for quick access
  • Browse and reuse saved QR code configurations

Project Structure

QR_Code/
├── index.html        # Main HTML file for the QR generator
├── style.css         # Styling for the app, including responsive design
├── script.js         # JavaScript logic for QR generation and bookmarks
├── README.md         # Project documentation (this file)

QR Code Styles

The generator offers 6 unique dot styles:

  1. Square - Classic, clean QR code appearance
  2. Rounded - Smooth rounded corners for a modern look
  3. Classy - Elegant style with refined edges
  4. Pointillism - Artistic dots-based rendering
  5. Classy & Rounded - Combination of elegance and smooth curves
  6. Extra Rounded - Maximum roundness for a soft, friendly appearance

Technologies Used

  • Vanilla JavaScript (ES6+) - Core functionality and DOM manipulation
  • HTML5 - Semantic markup and structure
  • CSS3 - Modern styling with flexbox and responsive design
  • QR Code Styling Library - Powerful QR code generation engine

Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository
  2. Create a new branch (git checkout -b feature/your-feature)
  3. Make your changes and commit (git commit -m "Add your feature")
  4. Push to your branch (git push origin feature/your-feature)
  5. Open a pull request

See CONTRIBUTING.md for more details.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgements

  • Built with ❤️ as part of the JSPlayz project
  • Powered by qr-code-styling by Denys Kozak
  • Inspired by the need for beautiful, customizable QR codes for modern web applications

Use Cases

  • Marketing : Create branded QR codes for campaigns and promotions
  • Business Cards : Add professional QR codes with your logo
  • Events : Generate event tickets and registration codes
  • Product Packaging : Link to product information and reviews
  • Restaurants : Digital menus and contactless ordering
  • Education : Share resources and assignment links

Contact

Have questions or suggestions? Reach out to Nick Frost or open an issue!


Keywords : QR code generator, JavaScript QR code, customizable QR codes, QR code with logo, web app, responsive design, vanilla JS, HTML5, CSS3, open source, frontend development, bookmark system, multiple formats


Part of the JSPlayz Collection - Check out more JavaScript projects at JSPlayz

About

A powerful, customizable JavaScript QR code generator built with HTML, CSS, and vanilla JavaScript. Create stunning QR codes with custom styles, colors, and embedded images.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published