Back to Free Tools
FREE TOOLS
ANSI 256 Color Converter
Convert a fixed XTerm palette index or find the nearest admitted opaque RGB color.
Canonical decimal palette index, Opaque concrete HEX/RGB/HSL color
ansi-256-color.json
Browser only
Runs locally in your browser. Your files, pasted content and generated output are not uploaded. Reset clears this tool’s working data.
This tool needs JavaScript. If it does not load, refresh the page and try again.
How to use this tool
- Enter the admitted input using Direction, Palette index (0–255), Opaque color.
- Use the explicit mode and declared finite options. Only selected operation fields participate.
- Select Convert terminal color and download ansi-256-color.json.
Examples
#ff0000 chooses index9 in reverse mode because duplicate entry196 loses the lowest-index tie.
Limitations
- 256-entry named convention; index0–255,300 color units,1,200 selected input bytes,64 KiB report and30-second processing limit.
- This convention is not the current terminal theme or universal ANSI/VGA colors. No terminal access, escape execution, theme inference or perceptual-nearest claim.
Related tools
No items found.