config.txt Builder

Pick the options you want and the right column updates a complete config.txt you can copy into your boot partition. On Bookworm and later that's /boot/firmware/config.txt; on Bullseye and earlier it's /boot/config.txt. Lines that are off by default are simply omitted.

Where this file lives: on Raspberry Pi OS Bookworm (12) and later, the boot partition is mounted at /boot/firmware/. On Bullseye (11) and older, it's /boot/. Edit with sudo nano /boot/firmware/config.txt; changes take effect on reboot.

[all] vs [pi4] / [pi5]: the firmware reads sections in order. Anything under [all] applies to every model; sections like [pi4] apply only when booted on that hardware. Useful when one SD card boots multiple Pis.

Overclocking: the Pi will throttle automatically if it overheats. Even so, sustained heavy clocks without active cooling can corrupt the SD card and shorten silicon lifespan. Test with vcgencmd measure_temp and vcgencmd get_throttled.

Recovery: if a config change won't boot, pop the SD card into another machine — the boot partition is FAT32 and editable from any OS. Comment out the offending line with a #.