Repair a GIMP GPL palette that imports empty

Repair a GIMP GPL palette by checking its header and RGB rows. Use a two-swatch reference file to isolate missing colors and verify the imported values.

2 min read · Updated 2026-11-22

Start with a two-swatch GPL file

Save this example as plain text with a .gpl extension. The first line identifies the format. Each swatch row starts with three decimal integers in red, green, blue order, followed by its name. The Columns line controls the display layout.

Start with a two-swatch GPL file
TEXT
GIMP Palette
Name: Interface
Columns: 2
#
37 99 235 Accent blue
255 255 255 Paper

Check the rows that disappeared

A line beginning with # is a comment. A list such as #2563EB followed by #FFFFFF therefore contributes no swatches. Convert each hex value to decimal channels before pasting it. Use spaces or tabs between the integers and keep each component in the range 0 through 255.

Convert a missing hex swatch to RGB

Compare the imported names, count and values

Open a copy of the reference file in the GPL palette converter. Expect two entries in order: Accent blue (#2563EB) and Paper (#FFFFFF). Once those match, add rows from the original file a few at a time. If the count stops growing, compare the last added lines with the reference, including the separators and line breaks.

Inspect the repaired GPL palette

Tools featured in this guide

Related formats

Frequently asked questions

Can I fix a palette by changing its extension?

Renaming a CSV or a binary palette leaves its contents unchanged. A GPL reader needs the text header and RGB rows shown above.

Can a swatch name contain spaces?

Yes. Everything after the three numeric components can form the name. Accent blue in the example imports as one swatch.

Authoritative Specifications & References

More color guides