Choose language

Google Charts QR codes stopped working: the free replacement

Google has switched off the QR codes of its Chart API. The address chart.googleapis.com now returns an error, and spreadsheets, emails and web pages that used it show empty images. One changed address fixes it: free, without a key and without an account.

Error 404, no image
Before
chart.googleapis.com/chart?cht=qr&chs=200x200&chl=…
QR code
After
event.pics/qr.png?size=200&data=…

Google Sheets: the new formula

The most common old formula looked like this:

=IMAGE("https://chart.googleapis.com/chart?chs=150x150&cht=qr&chl="&ENCODEURL(A2))

Replace it with this formula and copy it down as usual:

=IMAGE("https://event.pics/qr.png?size=150&data="&ENCODEURL(A2))

Web pages, emails and apps

In an image tag, only the address changes:

<img src="https://chart.googleapis.com/chart?cht=qr&chs=200x200&chl=https%3A%2F%2Fexample.com">
<img src="https://event.pics/qr.png?size=200&data=https%3A%2F%2Fexample.com">

Translating the parameters

Every Google Chart QR parameter has an equivalent. Put data= last when you join the address together in a formula.

Google ChartsEventPicsNote
cht=qrqr.png or qr.svgThe path says it is a QR code. SVG stays sharp in print.
chs=300x300size=300Codes are always square, so one number is enough. 100 to 3000 pixels.
chl=…data=…Text or link, URL encoded, up to 1200 characters.
chld=H|4ecl=H&margin=4Error correction L, M, Q or H and the border in modules. Default here: Q and 4.
choe=UTF-8not neededThe text is always encoded as UTF-8.

What else you get

All parameters are listed in the API documentation.

Frequently asked questions

Why does my QR code formula suddenly show nothing?

Google has switched off the QR codes of its Chart API. Every request to chart.googleapis.com/chart with cht=qr now returns an error page instead of an image, so the IMAGE formula stays empty. Replacing the address as shown above brings the codes back.

Do QR codes I already printed still work?

Yes. A printed QR code contains the link itself, nothing on Google's side. Only creating new images stopped working.

Is the replacement really free?

Yes. No key, no sign up and no fixed daily limit. The same input always returns the same picture, which stays cached.

Is my data stored?

No. We do not log query strings and do not keep what you encode.

How do I avoid depending on any service?

Create the codes once in the QR code generator and download them as PNG or SVG. Those files work without any internet service.

Prefer to click? The QR code generator creates the same codes with a live preview, your logo and a download as PNG or SVG.

Open the QR code generator