# Optimizing QR Codes for Scanning

Your combination of printer and scanner may have an impact on the success of your implementation when using QR codes. Though generally resilient, QR codes are configurable to balance scan speed & code redundancy, allowing you to optimize the QR code for your application. Yansa Labs' QR Code Generator provides all of the tools you need to adjust QR code dimensions & proportions to ensure success.

When adjusting QR code dimensions to achieve readability, the parameters to adjust are fields on the [**Barcode Part**](/barcode-and-qr-code-generator/technical-docs/building-a-barcode-label/barcode-parts.md) form. In order of importance, these are:

1. [**Height (in)**](#height-in): Impacts the overall size of the QR code \[default: 1.0]
2. [**Error correction level**](/barcode-and-qr-code-generator/technical-docs/building-a-barcode-label/barcode-parts.md): Impacts level of redundancy in the QR code \[default: M]

{% hint style="info" %}
See directly below for additional information about each field. See far bottom for visual [examples of an identical QR code rendered with various error correction levels](#examples-of-an-identical-qr-code-of-varied-error-correction-levels).
{% endhint %}

### Height (in)

Updating this value will impact the height & width of the overall QR code. Increasing this value will increase size.

Height is set to a default of 1.0 in. The ideal height of a QR code is generally determined by overall label size - choose the height that provides the best label layout.

### Error Correction Level

Updating this value will impact the level of redundancy built into the QR code. Possible values are L,M,Q,H. L provides the fastest scan, but least redundancy. H provides the slowest scan, but most redundancy. Higher redundancy levels may be useful in difficult environments, such as factory floors where QR codes may be dirty/worn.

Error correction level is set to a default of M. We do not recommend adjusting this setting unless it is necessary for your specific use-case.

## Examples of an Identical QR Code of Varied Error Correction Levels

<figure><img src="/files/20xjTuF7nbYrmDQjPpwW" alt=""><figcaption><p>Error Correction Level L</p></figcaption></figure>

<figure><img src="/files/Rf5lfnAegGe5gAUH0ppp" alt=""><figcaption><p>Error Correction Level M</p></figcaption></figure>

<figure><img src="/files/0wS31FghU5r16z8m32k5" alt=""><figcaption><p>Error Correction Level Q</p></figcaption></figure>

<figure><img src="/files/m8t4sqt1Xyk38lDfMi5p" alt=""><figcaption><p>Error Correction Level H</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.yansalabs.com/barcode-and-qr-code-generator/technical-docs/optimizing-qr-codes-for-scanning.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
