Transforming digital interactions with powerful, customizable QR codes.
This modern, feature-rich QR code generator, built with pure JavaScript, empowers you to effortlessly create high-quality QR codes for a myriad of applications. Designed with a sleek, intuitive dark-themed interface, it offers unparalleled flexibility and a seamless user experience, making QR code generation both efficient and enjoyable.
Discover the comprehensive suite of features that set this QR code generator apart:
Beyond basic text, generate specialized QR codes for diverse content, ensuring your audience connects with your information precisely as intended:
- Text: Encode plain text messages, notes, or short announcements.
- URL: Direct users instantly to websites, landing pages, or online resources.
- WiFi: Simplify network access by generating QR codes that automatically connect devices to your Wi-Fi network.
- Email: Create
mailtoQR codes pre-filled with recipient, subject, and message for effortless communication.
Tailor your QR codes to match your aesthetic and functional requirements:
- Size Selection: Choose from a range of precise dimensions (e.g., Small (200x200) to Extra Large (500x500)) to fit any display or print need.
- Error Correction: Adjust error correction levels (7% to 30%) to ensure scannability even if the QR code is partially damaged or obscured.
- Modern UI/UX: Experience a visually stunning black and purple theme that is both professional and easy on the eyes.
- Responsive Design: Flawlessly adapts to any screen size, from desktops to mobile devices, providing a consistent experience across all platforms.
Designed with the user in mind, every interaction is streamlined and intuitive:
- Real-time Validation: Receive instant visual feedback on input validity, preventing errors and speeding up the generation process.
- Download Support: Easily save your generated QR codes as high-resolution PNG files for immediate use.
- Copy to Clipboard: Quickly copy the generated QR code image to your clipboard for pasting into other applications.
- Keyboard Shortcuts: Boost your productivity with shortcuts like
Ctrl/Cmd + Enterto instantly generate QR codes. - Toast Notifications: Stay informed with subtle, user-friendly status messages for successful operations or important alerts.
Experience the power and simplicity of the QR code generator firsthand:
Explore the intuitive interface and powerful capabilities through these detailed screenshots:
A closer look at the professional QR Studio interface, meticulously designed for optimal workflow:
- Left Panel: Provides quick access to templates and a history of recently generated QR codes, enhancing efficiency.
- Center Panel: Features a multi-type QR generator with extensive customization options, allowing for precise control over your QR codes.
- Right Panel: Displays a live preview of your QR code, alongside convenient download and sharing capabilities.
- Modern Dark Theme: A sleek, professional dark theme optimized for extended use and reduced eye strain, ideal for business and creative professionals.
Built with robust and modern web technologies to ensure performance, reliability, and maintainability:
- HTML5: Provides a semantic and accessible foundation for the application's structure.
- CSS3: Utilizes advanced styling techniques, including CSS Grid and Flexbox, for a responsive and visually appealing layout.
- Vanilla JavaScript (ES6+): Leverages modern JavaScript features and APIs for dynamic functionality and a smooth user experience.
- QRCode.js: Integrates the highly reliable and efficient
QRCode.jslibrary by davidshimjs for accurate QR code generation. - Geist Font: Incorporates the clean, professional
Geisttypeface for superior readability and a modern aesthetic.
Follow these simple steps to get the QR code generator up and running on your local machine:
-
Clone the Repository:
git clone https://github.com/HadesIsOff/qr-code-generator.git
-
Navigate to the Project Directory:
cd qr-code-generator -
Open
index.htmlor Serve Locally: You can open theindex.htmlfile directly in your web browser, or for a more robust development environment, serve it using a local web server. Examples:# Using Python's built-in HTTP server python -m http.server 8000 # Using Node.js with http-server (install via `npm install -g http-server`) npx http-server # Using PHP's built-in web server php -S localhost:8000
-
Access in Browser: Once served, open your web browser and navigate to
http://localhost:8000(or the port you specified).
Easily deploy your own version of the QR code generator using GitHub Pages:
- Fork this Repository: Click the 'Fork' button on the top right of the GitHub repository page.
- Access Settings: Go to your forked repository's
Settingstab. - Navigate to Pages: In the left sidebar, select
Pages. - Configure Deployment: Under 'Build and deployment', choose
Deploy from a branch. - Select Branch: Select
mainas your branch and/(root) as your folder. - Publish: Click
Save. Your site will typically be available within a few minutes athttps://your-github-username.github.io/qr-code-generator.
Master the QR code generator with this step-by-step guide:
-
Select Content Type: Begin by clicking on the desired content type button (e.g.,
Text,URL,WiFi,Email) located in the interface. -
Enter Your Content: Fill in the required fields corresponding to your selected type. The 'Generate' button will automatically become active once valid content is provided.
-
Customize (Optional): Fine-tune your QR code by selecting your preferred size and error correction level from the available options.
-
Generate & Download: Click the
Generate QR Codebutton or use theCtrl/Cmd + Enterkeyboard shortcut. You can then use theDownloadbutton to save the QR code as a PNG image orCopyto quickly place it on your clipboard.
To illustrate the versatility of the generator, here are examples for each content type:
Hello, World!
Meeting at 3 PM in Conference Room B
Contact: +1 (555) 123-4567
https://example.com
github.com/username/project
youtube.com/watch?v=dQw4w9WgXcQ
Network: MyHomeWiFi
Password: SuperSecure123
Security: WPA/WPA2
To: [email protected]
Subject: Hello from QR Code
Message: This email was sent via QR code!
Beyond the basic options, you can further customize the appearance of your QR codes:
The primary color scheme is easily modifiable via CSS custom properties defined in the :root selector of your stylesheet:
:root {
--primary-bg: #0a0a0a; /* Main background color */
--secondary-bg: #1a1a1a; /* Secondary background color */
--primary-purple: #8b5cf6; /* Main accent purple */
--light-purple: #a78bfa; /* Lighter shade of purple */
--dark-purple: #7c3aed; /* Darker shade of purple */
}By changing these values, you can quickly adapt the application's theme to your specific branding or preference.
For developers looking to expand the generator's capabilities, adding new QR code types involves a few straightforward steps:
- HTML Integration: Add a new button element within the HTML type selector section of
index.html. - Input Field Creation: Create the necessary input fields in the HTML to capture data specific to your new QR type.
- JavaScript Validation: Implement robust validation logic in your JavaScript file to ensure the integrity of the input data.
- Content Formatting: Modify the
getQRContent()function in JavaScript to correctly format the input data into a string suitable for QR code generation.
This QR code generator is rigorously tested and optimized for broad compatibility across modern web browsers and mobile devices, ensuring a consistent experience for all users.
- Google Chrome: Version 60+ β
- Mozilla Firefox: Version 60+ β
- Apple Safari: Version 12+ β
- Microsoft Edge: Version 79+ β
- iOS Safari: Version 12+ β
- Chrome Mobile: Version 60+ β
- Samsung Internet: Version 8+ β
We welcome and encourage contributions from the community! Whether it's a bug fix, a new feature, or an improvement to the documentation, your input is valuable. Please feel free to submit a Pull Request.
To contribute effectively, follow these steps to set up your development environment:
- Fork the Repository: Start by forking the
qr-code-generatorrepository to your GitHub account. - Create a Feature Branch: Create a new branch for your specific feature or bug fix:
git checkout -b feature/your-amazing-feature-name
- Implement Your Changes: Make your desired code modifications and additions.
- Thorough Testing: Ensure your changes are fully tested and do not introduce any regressions.
- Commit Your Changes: Commit your work with a clear and descriptive message:
git commit -m 'feat: Add your amazing feature' - Push to Your Branch: Push your local branch to your forked repository on GitHub:
git push origin feature/your-amazing-feature-name
- Open a Pull Request: Navigate to the original
qr-code-generatorrepository on GitHub and open a Pull Request from your feature branch.
To maintain code quality and consistency, please adhere to the following guidelines:
- JavaScript: Utilize modern ES6+ JavaScript features.
- Indentation: Maintain consistent indentation using 2 spaces.
- Documentation: Add JSDoc comments for all functions and complex code blocks.
- Cross-Browser Testing: Ensure your changes function correctly across multiple web browsers.
- Responsiveness: Verify that your contributions maintain mobile responsiveness.
Our vision for the QR code generator includes continuous improvement and the addition of exciting new features. Here's a glimpse of what's planned:
- QR Code History: β Implemented local storage for saving generated QR codes, allowing easy access to past creations.
- Quick Templates: β Introduced business, WiFi, social, and contact templates for rapid QR code generation.
- Professional UI: β Developed a modern dark theme with a fully responsive design, enhancing user experience.
- Color Customization: Future plans include allowing users to customize QR code colors and integrate branding elements.
- Logo Embedding: Enable the embedding of logos directly into the center of QR codes for enhanced brand recognition.
- Batch Generation: Develop functionality to generate multiple QR codes simultaneously, ideal for large-scale needs.
- Export Formats: Expand export options to include SVG and PDF formats for greater versatility.
- Analytics Dashboard: Integrate a dashboard for tracking QR code scan statistics and analytics.
- API Integration: Explore integration with URL shortening services and other relevant APIs.
While continuously striving for perfection, please be aware of the following known issues:
- Clipboard Copy: The 'Copy to Clipboard' functionality may exhibit inconsistent behavior in some older browser versions.
- Performance with Large Codes: Generating very large QR codes might experience slightly longer processing times on devices with slower processors.
This project is proudly licensed under the MIT License. For full details, please refer to the LICENSE file included in the repository.
Hades
- GitHub: @HadesIsOff
- Portfolio: github.com/HadesIsOff
We extend our gratitude to the following projects and resources that have been instrumental in the development of this QR code generator:
- QRCode.js: The robust JavaScript library that powers the core QR code generation functionality.
- Inter Font: For providing the elegant and highly readable
Intertypeface, contributing significantly to the application's aesthetic. - Modern Design Systems: Inspiration drawn from contemporary UI/UX principles and design systems to create an intuitive and visually appealing interface.
If you find this project helpful or inspiring, please consider giving it a β star on GitHub! Your support motivates continued development and improvement.
