A simple and responsive web-based QR Code Generator built with HTML, CSS, and JavaScript. This tool allows users to convert any text or URL into a scannable QR code, with options to download the generated image and share it across various platforms.
- Generate QR Codes: Easily convert text or URLs into high-quality QR codes.
- Instant Display: See your generated QR code immediately on the page.
- Download Option: Download the QR code as a PNG image for offline use.
- Share Functionality: Seamlessly share the generated QR code (and a message) using your device's native sharing capabilities (Web Share API, if supported).
- Responsive Design: Optimized for a smooth user experience across desktops, tablets, and mobile phones.
- Dynamic Copyright Year: Automatically updates the copyright year in the footer.
- HTML5: For the basic structure of the web page.
- CSS3: For styling and responsiveness (Flexbox, Media Queries).
- JavaScript (ES6+): For dynamic functionality, QR code generation logic, and Web Share API integration.
- QR Server API: Utilizes
https://api.qrserver.com/v1/create-qr-code/
for generating QR code images. - Google Fonts: "Kaushan Script" for the heading font.
- Enter Text or URL: In the input field, type or paste the text or URL you want to convert into a QR code.
- Generate: Click the "Generate" button. The QR code will appear below the input field.
- Download: Once the QR code is displayed, a "Download" button will appear. Click it to save the QR code image to your device.
- Share: If your browser supports the Web Share API (common on mobile and modern desktop browsers), a "Share" button will also appear. Click it to open your device's native sharing options (e.g., WhatsApp, Email, Social Media).
To run this project locally:
-
Clone the repository:
git clone [https://github.com/DIYA-bot/QR-Generator.git](https://github.com/your-username/qr-generator.git)
-
Navigate to the project directory:
cd QR-Generator
-
Open
index.html
: Simply open theindex.html
file in your preferred web browser. No special server setup is required as it's a client-side only application.
This project is open-source and available under the MIT License.
If you have any questions, suggestions, or just want to connect, feel free to reach out!
** Name/GitHub Profile:** Diya
Made with ❤️ in India.