From 446a4cd22cb1dfa7c6224c36f3eef1cee3b33b88 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Mon, 4 Aug 2025 10:34:12 +0000
Subject: [PATCH 1/6] Initial plan
From 2dd9284a8ab3012a905b0848ea04dd9d27fa421f Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Mon, 4 Aug 2025 10:57:12 +0000
Subject: [PATCH 2/6] Implement QR Code Generator with customization features
and logo support
Co-authored-by: peckz <18050177+peckz@users.noreply.github.com>
---
README.md | 1 +
components/seo/QrCodeSEO.tsx | 242 ++++++++
.../utils/qr-code-generator.utils.test.ts | 242 ++++++++
components/utils/qr-code-generator.utils.ts | 242 ++++++++
components/utils/tools-list.ts | 6 +
package-lock.json | 27 +
package.json | 2 +
pages/utilities/qr-code-generator.tsx | 523 ++++++++++++++++++
8 files changed, 1285 insertions(+)
create mode 100644 components/seo/QrCodeSEO.tsx
create mode 100644 components/utils/qr-code-generator.utils.test.ts
create mode 100644 components/utils/qr-code-generator.utils.ts
create mode 100644 pages/utilities/qr-code-generator.tsx
diff --git a/README.md b/README.md
index 3698a1f..99ae078 100644
--- a/README.md
+++ b/README.md
@@ -49,6 +49,7 @@ Here is the list of all utilities:
- [Lorem Ipsum Generator](https://jam.dev/utilities/lorem-ipsum-generator)
- [WebP Converter](https://jam.dev/utilities/webp-converter)
- [SQL Minifer](https://jam.dev/utilities/sql-minifier)
+- [QR Code Generator](https://jam.dev/utilities/qr-code-generator)
### Built With
diff --git a/components/seo/QrCodeSEO.tsx b/components/seo/QrCodeSEO.tsx
new file mode 100644
index 0000000..8531aa1
--- /dev/null
+++ b/components/seo/QrCodeSEO.tsx
@@ -0,0 +1,242 @@
+import CodeExample from "../CodeExample";
+import GetJamForFree from "./GetJamForFree";
+
+export default function QrCodeSEO() {
+ return (
+
+
+
+ Create customizable QR codes with our free online generator. Add your logo,
+ choose different styles (dots, squares, rounded corners), and customize colors.
+ Perfect for marketing materials, business cards, and digital campaigns.
+ No sign-up required — generate and download instantly. Made with 💜 by the
+ developers building Jam.
+
+
+
+
+
How to Use the QR Code Generator:
+
+ Generate professional QR codes in seconds. Enter your text, URL, or data,
+ customize the appearance with different styles and colors, and optionally
+ add your logo to the center. Perfect for branding and marketing campaigns.
+
+
+
Use Cases:
+
+
+ Marketing Campaigns: Create branded QR codes for flyers, posters,
+ and advertisements with your company logo.
+
+
+ Business Cards: Generate QR codes linking to your contact information,
+ website, or social media profiles.
+
+
+ Digital Menus: Create QR codes for restaurant menus that customers
+ can scan with their phones.
+
+
+ Event Tickets: Generate unique QR codes for event check-ins and
+ ticket validation.
+
+
+ WiFi Sharing: Create QR codes that automatically connect users
+ to your WiFi network.
+
+
+
+
+
+
QR Code Customization Options:
+
+ Our QR code generator offers extensive customization options to match your
+ brand and style preferences:
+
+
+
+ Logo Integration: Upload your company logo or image to embed in
+ the center of the QR code while maintaining scannability.
+
+
+ Style Options: Choose from square, rounded, dots, classy, and
+ extra-rounded styles for the data modules.
+
+
+ Color Customization: Set custom colors for the foreground, background,
+ and corner elements to match your brand colors.
+
+
+ Error Correction: Adjust error correction levels (L, M, Q, H) to
+ balance QR code size with logo compatibility.
+
+
+ Multiple Formats: Download your QR code as PNG, SVG, JPEG, or WebP
+ for different use cases.
+
+
+
+
+
+
Understanding QR Code Error Correction:
+
+ QR codes include built-in error correction that allows them to be read even
+ when partially damaged or obscured. This feature is particularly important
+ when adding logos:
+
+
+
+ Low (L) ~7%: Smallest QR code size, but less tolerance for logos
+ and damage.
+
+
+ Medium (M) ~15%: Good balance between size and error tolerance.
+ Default for most applications.
+
+
+ Quartile (Q) ~25%: Better for noisy environments and small logos.
+
+
+ High (H) ~30%: Best choice when adding logos or expecting damage.
+ Larger file size but maximum customization capability.
+
+
+
+
+
+
QR Code Best Practices:
+
+ Follow these guidelines to create effective and scannable QR codes:
+
+
+
+ Adequate Size: Ensure your QR code is at least 2 x 2 cm (0.8 x 0.8 inches)
+ when printed to maintain scannability.
+
+
+ High Contrast: Use high contrast between foreground and background
+ colors for better readability.
+
+
+ Logo Size: Keep logos under 20% of the QR code area to maintain
+ scannability, especially with lower error correction levels.
+
+
+ Test Scanning: Always test your QR codes with multiple devices
+ and scanning apps before final use.
+
+
+ Clear Instructions: Include clear call-to-action text like
+ "Scan to visit website" near your QR code.
+
+
+
+
+
+
Working with QR Codes in JavaScript:
+
+ You can generate and work with QR codes programmatically using JavaScript
+ libraries. Here's an example using a popular QR code library:
+
+ {qrCodeExample}
+
+ This code demonstrates basic QR code generation. For advanced features like
+ custom styling and logos, consider using specialized libraries like
+ qr-code-styling or similar tools.
+
+
+
+
+
Meet Jam: The Ultimate Tool for Debugging Web Apps
+
+ While this tool helps you create professional QR codes quickly,{" "}
+
+ Jam
+ {" "}
+ streamlines your entire development workflow.
+
+
+ Jam is{" "}
+
+ the browser extension
+ {" "}
+ helping over 140,000 users debug faster. It captures console logs,
+ network requests, and more with just one click. Perfect for testing
+ QR code landing pages and debugging web applications.
+
+
+
+
+
+
+
+
+
FAQs:
+
+
+ Can I add a logo to my QR code? Yes! Our generator allows
+ you to upload and embed logos in the center of your QR code. Use high
+ error correction (H level) for best results with logos.
+
+
+ What file formats can I download? You can download your
+ QR code as PNG, SVG, JPEG, or WebP. SVG is recommended for print materials
+ as it's vector-based and scalable.
+
+
+ How do I ensure my QR code scans properly? Use high contrast
+ colors, maintain adequate size (minimum 2x2 cm when printed), test with
+ multiple devices, and avoid making logos too large.
+
+
+ What's the difference between error correction levels?
+ Higher levels (Q, H) can recover from more damage and allow larger logos
+ but create bigger QR codes. Lower levels (L, M) create smaller codes
+ but are less tolerant of damage.
+
+
+ Can I change the shape of QR code elements? Yes! Choose
+ from squares, dots, rounded corners, and other stylish options to match
+ your brand while maintaining scannability.
+
+
+ Is this QR code generator free? Yes, our QR code generator
+ is completely free with no limits on usage. Generate as many customized
+ QR codes as you need.
+
- Create customizable QR codes with our free online generator. Add your logo,
- choose different styles (dots, squares, rounded corners), and customize colors.
- Perfect for marketing materials, business cards, and digital campaigns.
- No sign-up required — generate and download instantly. Made with 💜 by the
- developers building Jam.
+ Create customizable QR codes with our free online generator. Add your
+ logo, choose different styles (dots, squares, rounded corners), and
+ customize colors. Perfect for marketing materials, business cards, and
+ digital campaigns. No sign-up required — generate and download
+ instantly. Made with 💜 by the developers building Jam.
How to Use the QR Code Generator:
- Generate professional QR codes in seconds. Enter your text, URL, or data,
- customize the appearance with different styles and colors, and optionally
- add your logo to the center. Perfect for branding and marketing campaigns.
+ Generate professional QR codes in seconds. Enter your text, URL, or
+ data, customize the appearance with different styles and colors, and
+ optionally add your logo to the center. Perfect for branding and
+ marketing campaigns.
Use Cases:
- Marketing Campaigns: Create branded QR codes for flyers, posters,
- and advertisements with your company logo.
+ Marketing Campaigns: Create branded QR codes for flyers,
+ posters, and advertisements with your company logo.
- Business Cards: Generate QR codes linking to your contact information,
- website, or social media profiles.
+ Business Cards: Generate QR codes linking to your contact
+ information, website, or social media profiles.
- Digital Menus: Create QR codes for restaurant menus that customers
- can scan with their phones.
+ Digital Menus: Create QR codes for restaurant menus that
+ customers can scan with their phones.
- Event Tickets: Generate unique QR codes for event check-ins and
- ticket validation.
+ Event Tickets: Generate unique QR codes for event check-ins
+ and ticket validation.
- WiFi Sharing: Create QR codes that automatically connect users
- to your WiFi network.
+ WiFi Sharing: Create QR codes that automatically connect
+ users to your WiFi network.
@@ -50,29 +51,29 @@ export default function QrCodeSEO() {
QR Code Customization Options:
- Our QR code generator offers extensive customization options to match your
- brand and style preferences:
+ Our QR code generator offers extensive customization options to match
+ your brand and style preferences:
- Logo Integration: Upload your company logo or image to embed in
- the center of the QR code while maintaining scannability.
+ Logo Integration: Upload your company logo or image to embed
+ in the center of the QR code while maintaining scannability.
Style Options: Choose from square, rounded, dots, classy, and
extra-rounded styles for the data modules.
- Color Customization: Set custom colors for the foreground, background,
- and corner elements to match your brand colors.
+ Color Customization: Set custom colors for the foreground,
+ background, and corner elements to match your brand colors.
- Error Correction: Adjust error correction levels (L, M, Q, H) to
- balance QR code size with logo compatibility.
+ Error Correction: Adjust error correction levels (L, M, Q, H)
+ to balance QR code size with logo compatibility.
- Multiple Formats: Download your QR code as PNG, SVG, JPEG, or WebP
- for different use cases.
+ Multiple Formats: Download your QR code as PNG, SVG, JPEG, or
+ WebP for different use cases.
@@ -80,25 +81,26 @@ export default function QrCodeSEO() {
Understanding QR Code Error Correction:
- QR codes include built-in error correction that allows them to be read even
- when partially damaged or obscured. This feature is particularly important
- when adding logos:
+ QR codes include built-in error correction that allows them to be read
+ even when partially damaged or obscured. This feature is particularly
+ important when adding logos:
- Low (L) ~7%: Smallest QR code size, but less tolerance for logos
- and damage.
+ Low (L) ~7%: Smallest QR code size, but less tolerance for
+ logos and damage.
- Medium (M) ~15%: Good balance between size and error tolerance.
- Default for most applications.
+ Medium (M) ~15%: Good balance between size and error
+ tolerance. Default for most applications.
- Quartile (Q) ~25%: Better for noisy environments and small logos.
+ Quartile (Q) ~25%: Better for noisy environments and small
+ logos.
- High (H) ~30%: Best choice when adding logos or expecting damage.
- Larger file size but maximum customization capability.
+ High (H) ~30%: Best choice when adding logos or expecting
+ damage. Larger file size but maximum customization capability.
@@ -110,20 +112,21 @@ export default function QrCodeSEO() {
- Adequate Size: Ensure your QR code is at least 2 x 2 cm (0.8 x 0.8 inches)
- when printed to maintain scannability.
+ Adequate Size: Ensure your QR code is at least 2 x 2 cm (0.8
+ x 0.8 inches) when printed to maintain scannability.
- High Contrast: Use high contrast between foreground and background
- colors for better readability.
+ High Contrast: Use high contrast between foreground and
+ background colors for better readability.
- Logo Size: Keep logos under 20% of the QR code area to maintain
- scannability, especially with lower error correction levels.
+ Logo Size: Keep logos under 20% of the QR code area to
+ maintain scannability, especially with lower error correction
+ levels.
- Test Scanning: Always test your QR codes with multiple devices
- and scanning apps before final use.
+ Test Scanning: Always test your QR codes with multiple
+ devices and scanning apps before final use.
Clear Instructions: Include clear call-to-action text like
@@ -135,14 +138,15 @@ export default function QrCodeSEO() {
Working with QR Codes in JavaScript:
- You can generate and work with QR codes programmatically using JavaScript
- libraries. Here's an example using a popular QR code library:
+ You can generate and work with QR codes programmatically using
+ JavaScript libraries. Here's an example using a popular QR code
+ library:
{qrCodeExample}
- This code demonstrates basic QR code generation. For advanced features like
- custom styling and logos, consider using specialized libraries like
- qr-code-styling or similar tools.
+ This code demonstrates basic QR code generation. For advanced features
+ like custom styling and logos, consider using specialized libraries
+ like qr-code-styling or similar tools.
@@ -165,8 +169,8 @@ export default function QrCodeSEO() {
the browser extension
{" "}
helping over 140,000 users debug faster. It captures console logs,
- network requests, and more with just one click. Perfect for testing
- QR code landing pages and debugging web applications.
+ network requests, and more with just one click. Perfect for testing QR
+ code landing pages and debugging web applications.
@@ -178,35 +182,36 @@ export default function QrCodeSEO() {
FAQs:
- Can I add a logo to my QR code? Yes! Our generator allows
- you to upload and embed logos in the center of your QR code. Use high
- error correction (H level) for best results with logos.
+ Can I add a logo to my QR code? Yes! Our generator
+ allows you to upload and embed logos in the center of your QR code.
+ Use high error correction (H level) for best results with logos.
- What file formats can I download? You can download your
- QR code as PNG, SVG, JPEG, or WebP. SVG is recommended for print materials
- as it's vector-based and scalable.
+ What file formats can I download? You can download
+ your QR code as PNG, SVG, JPEG, or WebP. SVG is recommended for
+ print materials as it's vector-based and scalable.
- How do I ensure my QR code scans properly? Use high contrast
- colors, maintain adequate size (minimum 2x2 cm when printed), test with
- multiple devices, and avoid making logos too large.
+ How do I ensure my QR code scans properly? Use high
+ contrast colors, maintain adequate size (minimum 2x2 cm when
+ printed), test with multiple devices, and avoid making logos too
+ large.
What's the difference between error correction levels?
- Higher levels (Q, H) can recover from more damage and allow larger logos
- but create bigger QR codes. Lower levels (L, M) create smaller codes
- but are less tolerant of damage.
+ Higher levels (Q, H) can recover from more damage and allow larger
+ logos but create bigger QR codes. Lower levels (L, M) create smaller
+ codes but are less tolerant of damage.
- Can I change the shape of QR code elements? Yes! Choose
- from squares, dots, rounded corners, and other stylish options to match
- your brand while maintaining scannability.
+ Can I change the shape of QR code elements? Yes!
+ Choose from squares, dots, rounded corners, and other stylish
+ options to match your brand while maintaining scannability.
- Is this QR code generator free? Yes, our QR code generator
- is completely free with no limits on usage. Generate as many customized
- QR codes as you need.
+ Is this QR code generator free? Yes, our QR code
+ generator is completely free with no limits on usage. Generate as
+ many customized QR codes as you need.