ANSI Color Code Generator

ANSI Color Code Generator

Build styled terminal output strings using ANSI escape codes. Choose foreground/background colors (named, 256-color, or truecolor), apply bold, italic, underline. Preview live in a fake terminal.

Foreground Color
Selected: Red (code 31)
Background Color
Text Styles
Input Text
Terminal Preview
Hello, World!

Build ANSI escape sequences visually with live terminal preview, decompose existing escape codes, and reference the full 16-color standard — all client-side.

ANSI Color Code Generator

Build styled terminal output strings using ANSI escape codes. Choose foreground/background colors (named, 256-color, or truecolor), apply bold, italic, underline. Preview live in a fake terminal.

Common uses

  • Generate bold green output for a terminal success message
  • Build a 256-color bash prompt string
  • Decompose an existing ANSI escape sequence into its parts

Frequently asked questions

Can I use ANSI Color Code Generator to generate bold green output for a terminal success message?

Yes. ANSI Color Code Generator can generate bold green output for a terminal success message, directly in your browser.

Can I use ANSI Color Code Generator to build a 256-color bash prompt string?

Yes. ANSI Color Code Generator can build a 256-color bash prompt string, directly in your browser.

Can I use ANSI Color Code Generator to decompose an existing ANSI escape sequence into its parts?

Yes. ANSI Color Code Generator can decompose an existing ANSI escape sequence into its parts, directly in your browser.

Is my data uploaded to a server?

No. This tool runs entirely in your browser — your input is processed locally on your device and is never uploaded or stored on a server.