FREE · IN YOUR BROWSER

MakeCode Arcade Palette Editor

Edit the 15 visible colors, compare an image remap, and export a matching project palette or RGB buffer. Index 0 stays transparent.

No account needed.

PALETTE → PROJECT● Local processing
SHARED PALETTE / 0–f

Index 0 always means transparency. Index f is a visible color, even when its RGB value is black. Changing a project palette changes every pixel using the same index.

Default palette match32 × 32
Remapped palette match32 × 32

Both previews match source RGB to their nearest visible palette color; this is a fresh remap, not recoloring existing indices. The copied sprite uses the edited palette.

Built-in color strip: transparent 0 on the left, visible black f on the right.

SEE THE MATH

Worked examples

Transparent 0, visible f

0 → transparent · f → opaque black

The default palette uses #000000 in both slots, but only index 0 is transparent. The built-in strip shows the difference.

A runtime buffer

16 entries × 3 RGB bytes = 48 bytes

The runtime export contains 96 hexadecimal characters. It includes all sixteen slots in their displayed order.

A project-wide edit

index 2: red → your chosen color

Changing slot 2 recolors every existing project pixel that uses index 2. Remapping a new image can also choose different indices.

Edit a MakeCode Arcade color palette

A MakeCode Arcade palette connects the color indices stored in images to the RGB colors displayed on screen. This editor lets you inspect those sixteen entries, change the fifteen visible colors, preview a fresh image conversion, and export the exact palette you see. It also produces sprite code for the remapped preview, so you can bring the image and its matching colors into a project together. Editing and conversion happen locally in your browser.

The initial color strip is original test artwork generated by this tool. Its first column is transparent, and its last column is visible black. These two columns make an important distinction easy to inspect: a black RGB value in palette slot 0 does not turn transparency into black paint. Index 0 remains transparent because of the index itself. The visible black in slot f is an ordinary opaque color.

Understand the labels from 0 to f

The labels use hexadecimal notation. After 9 come a, b, c, d, e, and f, representing decimal indices ten through fifteen. Arcade images store one of these sixteen indices for each pixel. An image literal can use a dot for transparent pixels. The visible colors occupy slots 1 through f. Changing the RGB value of one of those slots changes how every pixel with that index appears in the project.

The editor locks slot 0 to #000000 as the transparency placeholder. That value is included in exports so they contain exactly sixteen entries, but it does not provide another visible black. Slot f starts at #000000 too and remains editable. You can make f a different visible color without changing the behavior of transparent pixels. Keep at least one dark visible entry if your artwork relies on a black outline.

Change colors individually or paste a palette

Use a color control to change a visible entry. The six-digit hexadecimal value shown underneath is the RGB value used for that slot. Exports and the remapped preview update together, so there is no separate save action between editing and copying. Reset default restores the standard Arcade colors in their original order. It does not remove the image you have selected for preview.

For a complete palette, paste sixteen six-digit hex colors. The editor accepts a JSON array, a JSON object with a palette property, or a list separated by spaces, commas, semicolons, or new lines. A leading hash is optional in a plain color value. Colors are normalized to lowercase six-digit hex strings with a hash. The first entry must be #000000 because slot 0 is locked.

Short hex forms, color names, and alpha values are rejected. A list with fifteen or seventeen entries is also rejected. This keeps the project export and runtime buffer aligned instead of silently shifting indices. If you have fifteen visible colors from a drawing application, add #000000 at the beginning for the transparent slot. Do not remove a visible color merely because it happens to have the same RGB value as another slot.

Keep the palette order intentional

Order has a different meaning when you are recoloring an existing game. If index 2 represents a character's shirt, replacing the RGB value at index 2 changes that shirt wherever it appears. Moving that color to another slot will not update the image's stored indices. Before replacing an existing project palette, compare the order of the old and new entries and decide which parts of the game should change together.

Duplicate RGB colors are valid. They can be useful when different image regions should share a color now but might diverge later. When this tool matches source RGB to an edited palette, equally close colors choose the earlier visible entry. That choice affects newly generated sprite code. It does not rewrite images already stored in your project, and a duplicate transparent placeholder never becomes a candidate visible color.

Preview a fresh image remap

Choose a PNG or JPEG you created or have permission to use. Both previews fit that source inside a 32 by 32 rectangle using nearest-neighbor sampling. The left preview matches it to the default Arcade palette. The right preview independently matches the same source to the edited palette. Empty padding and source pixels at or below the alpha cutoff remain transparent. The cutoff is 127 for this preview.

This comparison answers a conversion question: which colors will my source image use with these palette entries? It does not simulate replacing the palette of an existing indexed sprite. The right preview is a fresh remap from the original source RGB values, so changing a palette entry can cause pixels to choose different indices. The Remapped sprite field contains those new indices, and its pixels match the edited-palette preview.

For a source pixel, the converter compares RGB distance against entries 1 through f and chooses the closest visible color. Index 0 is used for transparency only. An opaque black pixel will therefore choose a visible entry even though the transparent placeholder has black RGB values. If you change f away from black and no other visible entry is black, the pixel uses the nearest remaining visible color.

Inspect transparency and outlines

The checkerboard is a preview background, not part of the exported image. It shows through transparent pixels and fitted padding. A solid black area should cover that checkerboard. Try the built-in strip before importing your own artwork: the leftmost transparent column and rightmost black column should remain distinguishable with the default palette. After editing f, the rightmost area can change its matched index or color, while the transparent area stays clear.

A JPEG has no transparency, so a white background in a JPEG stays opaque. To remove a background, edit the source image and export a transparent PNG first. Very thin outlines may disappear when a large source is reduced to 32 by 32. Use the still image converter if you need other dimensions or an adjustable alpha cutoff. This page focuses on palette configuration and a consistent comparison preview.

Export a pxt.json palette

The pxt.json palette field contains a JSON object with one palette property. Merge that property into your project's existing pxt.json file. Preserve its name, dependencies, files, and other settings. The exported object is a configuration fragment rather than a complete project definition. If a palette property already exists, replace its value instead of adding a duplicate property with the same name.

Project palette settings help the Arcade image editor display the intended colors while you edit assets. This matters when you switch between the JavaScript view, blocks, and the image editor. After saving the setting, reopen the asset editor and check a known sprite. A correct RGB list in the wrong order can still recolor an entire scene unexpectedly, because each stored pixel continues to refer to its existing index.

Copy the Remapped sprite code when you want the uploaded image to accompany this palette. Paste it as an image value in the JavaScript editor, for example in a sprites.create call. The image literal does not embed the RGB palette. Keep the exported palette setting with the project, or the same indices may display using the default colors when you move the image elsewhere.

Export the 48-byte RGB buffer

The runtime output calls image.setPalette with a hexadecimal buffer. Each of the sixteen entries contributes three bytes in red, green, blue order. The result is exactly 48 bytes, represented by 96 hexadecimal characters. Slot 0 still contributes three bytes to keep every later entry at its correct position. There is no alpha byte, separator, or file header inside this buffer.

A runtime palette call changes colors while the program runs. It affects the whole project rather than one sprite. Existing backgrounds, tiles, text, and sprites that use the same indices can all change appearance. Copy the call before creating your preview sprite when testing in a fresh project. If a game later changes the palette again, the displayed colors will follow that later call.

Project configuration and runtime changes serve related purposes. The pxt.json setting defines the palette used when editing the project's images, while a runtime call can change what the running program displays. Keep them consistent when your goal is one fixed custom palette. For animation import, use the GIF to MakeCode Arcade tool and apply one shared palette across every frame instead of changing colors independently per image.

Check the result before using it in a game

Make a copy of your project before replacing its palette. Compare a familiar sprite, its outline, and the background after applying the new colors. Confirm that transparent pixels reveal the scene and that visible black remains opaque. If the tool's preview looks right but the simulator looks different, check the palette order, existing runtime calls, and whether the sprite code came from the same palette revision.

The preview accepts PNG and JPEG files up to 10 MB, with at most 4096 pixels per side and sixteen million source pixels. Files are decoded locally and are not saved as conversion history. Reloading clears your edits. Copy the configuration or buffer somewhere you control before leaving the page. The official Arcade image documentation explains the project palette and runtime buffer APIs used by these exports.

Unofficial; not affiliated with Microsoft or MakeCode.

Frequently asked questions

Why is index 0 locked?

Arcade reserves index 0 for transparency. This editor keeps its RGB placeholder at #000000 and exports it as the first of sixteen entries. Visible black uses a visible slot such as f, even if its RGB value is also #000000.

Which pasted palette formats work?

Paste a JSON array, an object with a palette property, or sixteen six-digit hex values separated by whitespace, commas, or semicolons. The first value must be #000000. Short hex, color names, alpha values, and incorrect entry counts are rejected.

Does the preview recolor existing sprite indices?

The preview freshly matches your PNG or JPEG source RGB to the edited palette at 32 × 32. It does not recolor an existing indexed sprite. The Remapped sprite export contains the indices used by that preview.

Where do I paste the pxt.json export?

Merge the palette property into your existing pxt.json without removing its name, dependencies, or files. Replace an existing palette property rather than adding it twice. This export is a configuration fragment, not a complete project.

Does changing the palette affect the whole project?

Yes. Project palette settings and image.setPalette affect all images using those indices, including sprites and backgrounds. The RGB buffer is exactly 48 bytes: three channels for each of sixteen entries, with no alpha bytes.

Are uploaded preview images saved?

No. PNG and JPEG decoding and remapping happen locally. Use files up to 10 MB, 4096 pixels per side and 16 million source pixels. Reloading clears your image and palette edits, so copy your exports before leaving.