Skip to content

Color Escape Code Generator

Generate ANSI terminal color escape codes for styles, foregrounds, and backgrounds across bash, python, javascript, and more.

Updated

What is the Color Escape Code Generator?

How it works

Examples

Bold Red Foreground Code

Text: "Error!", Style: Bold, FG: 16-Color Red (1)
\033[1;31mError!\033[0m

TrueColor (RGB) Custom Styling

Text: "Success", FG: #00ffcc, BG: #1e1e2e
\x1b[38;2;0;255;204;48;2;30;30;46mSuccess\x1b[0m

Frequently asked questions