Terminal Styling Made Easy
Generate ANSI
Escape Codes Instantly
Pick colors and styles visually, then copy the exact escape codes for your terminal scripts. Supports 8-color, 256-color, and true-color (24-bit RGB) modes.
🎨
8 / 256 / True Color
Switch between classic 8-color mode, the full 256-color palette, or 24-bit RGB for precise terminal colors.
✨
Text Style Options
Apply bold, italic, underline, dim, blink, and strikethrough — mix and match any combination.
📋
Ready-to-Use Snippets
One-click copy of escape codes for bash/shell, Python, and Node.js. No memorizing escape sequences.
Color Mode
Colors
#22D3EE
Toggle to add a background color.
Text Styles
Terminal Preview
bash
user@machine~$echo -e "...styled text..."
Hello, World!
\033[38;2;34;211;238mCode Snippets
echo -e "\033[38;2;34;211;238mHello, World!\033[0m"
Use echo -e to interpret escape sequences. On macOS with Zsh, use print -P or install coreutils.
Quick Reference
Style Codes
\033[0mReset all
\033[1mBold
\033[2mDim
\033[3mItalic
\033[4mUnderline
\033[5mBlink
\033[9mStrikethrough
Color Formats
\033[3Nm8-color foreground (N=0–7)
\033[4Nm8-color background (N=0–7)
\033[9NmBright foreground (N=0–7)
\033[38;5;Nm256-color foreground
\033[48;5;Nm256-color background
\033[38;2;R;G;BmTrue-color foreground
\033[48;2;R;G;BmTrue-color background
Frequently Asked Questions
Everything you need to know about ANSI Color Code Generator.