How to Create QR Codes in Unique Shapes

Jeffrey Jul 09, 2026

QR codes, or Quick Response codes, have become ubiquitous in our daily lives, serving as a convenient bridge between the physical and digital worlds. While their standard square shape is widely recognized and functional, there may be instances where you'd like to create QR codes in different shapes to make them more visually appealing or better suited to your design needs. Here's a step-by-step guide on how to make QR codes in different shapes using both online tools and programming.

Custom Color Shape QR Code for Business (digital Download) - Etsy
Custom Color Shape QR Code for Business (digital Download) - Etsy

Before we dive into the methods, let's understand that QR codes are essentially a matrix of black and white squares. The information is encoded in the pattern and position of these squares. When you change the shape of a QR code, you're essentially manipulating this matrix. However, be aware that altering the shape too much can affect the code's readability and scannability.

How to create a QR code in 5 easy steps
How to create a QR code in 5 easy steps

Using Online Tools

There are several online tools that allow you to create QR codes in different shapes with ease. These tools are user-friendly and don't require any programming knowledge.

Create unique QR codes for free!
Create unique QR codes for free!

Here's how to use one of these tools, The QR Code Generator:

Step 1: Choose Your Shape

How to Create Circle QR Codes?
How to Create Circle QR Codes?

After selecting the content you want to encode (URL, text, etc.), you'll see a 'Shape' option. Click on it to choose from a variety of shapes like circles, triangles, hearts, and more.

Secondly, you can also upload your own SVG file to create a custom shape. This is particularly useful if you have a specific logo or design you'd like to use as your QR code.

Step 2: Customize and Download

How to Create a QR Code on Android
How to Create a QR Code on Android

Once you've chosen your shape, you can customize the color, add a logo, or adjust other settings. After you're satisfied with your design, simply download your QR code.

Creating QR Codes in Different Shapes with Programming

If you're looking for more control and flexibility, you can create QR codes in different shapes using programming languages like Python or JavaScript. This approach allows you to manipulate the QR code matrix directly.

QR Codes: Do They Have to be Square? | UPrinting
QR Codes: Do They Have to be Square? | UPrinting

Here's a simple example using Python and the `qrcode` library:

Step 1: Install the Library

How to Create a Custom QR Code as per Designers
How to Create a Custom QR Code as per Designers
How to Create and Add a QR CODE to Graphics in Canva!
How to Create and Add a QR CODE to Graphics in Canva!
DIY Acrylic QR Code Sign: A Step-by-Step Guide
DIY Acrylic QR Code Sign: A Step-by-Step Guide
a person holding up a small box with pictures on the front and side of it
a person holding up a small box with pictures on the front and side of it
HOW TO CREATE A QR CODE - [ INSTRUCTIONS 101]
HOW TO CREATE A QR CODE - [ INSTRUCTIONS 101]
Cursive Font Wedding Font Vintage Cursive Font Lovely Font Old Cursive Font
Cursive Font Wedding Font Vintage Cursive Font Lovely Font Old Cursive Font
QR Code for Kids
QR Code for Kids
Custom Shaped QR Code: Wedding, Party, Business (Digital Download)
Custom Shaped QR Code: Wedding, Party, Business (Digital Download)
DIY Die-Cut 4 Variations Bundle QR Code Business Card | Unique Foldable
DIY Die-Cut 4 Variations Bundle QR Code Business Card | Unique Foldable
QR art
QR art
Introducing Custom QR Code Design Services - QReate & Track
Introducing Custom QR Code Design Services - QReate & Track
Butterfly Business Card Template | QR Code (Digital Download) |  Foldable Visiting Card | Editable Canva Layout for Florist
Butterfly Business Card Template | QR Code (Digital Download) | Foldable Visiting Card | Editable Canva Layout for Florist
several different types of qr code designs
several different types of qr code designs
Make Stunning QR Code Artwork Using AI [+ Examples]
Make Stunning QR Code Artwork Using AI [+ Examples]
✔ The best custom QR code with Your logo )
✔ The best custom QR code with Your logo )
How a QR Code Works
How a QR Code Works
I will create a unique, custom qr code and logo shape qr code in 1 hour
I will create a unique, custom qr code and logo shape qr code in 1 hour
Make a Custom QR Code That Actually Looks Good (and Does Something Cool)
Make a Custom QR Code That Actually Looks Good (and Does Something Cool)
the words dream big are surrounded by clouds and stars in pink, blue, and yellow
the words dream big are surrounded by clouds and stars in pink, blue, and yellow
Burger Shaped Folded Business Card Template | Die Cut QR Code Canva Editable | Pop Up Interactive Design | Digital Download
Burger Shaped Folded Business Card Template | Die Cut QR Code Canva Editable | Pop Up Interactive Design | Digital Download

First, you need to install the `qrcode` library. You can do this using pip:

pip install qrcode

Step 2: Create a Custom QR Code

Here's a simple script that creates a QR code in the shape of a heart:

import qrcode from PIL import Image # Create a QR code qr = qrcode.QRCode(version=1, box_size=10, border=5) qr.add_data('https://www.example.com') qr.make(fit=True) img = qr.make_image(fill_color='black', back_color='white') # Create a heart shape heart = Image.new('RGB', (img.width, img.height), color='white') for x in range(img.width): for y in range(img.height): if (x - img.width / 2) ** 2 + (y - img.height / 2) ** 2 <= (img.width / 2) ** 2: heart.putpixel((x, y), img.getpixel((x, y))) heart.save('heart_qr.png')

This script creates a QR code and then uses the `putpixel` method to replace the pixels in the shape of a heart with the QR code pixels.

Creating QR codes in different shapes can add a creative touch to your designs. However, always ensure that the QR code remains scannable and doesn't lose too much of its functionality due to the shape manipulation. Happy coding!