ToolsForcebeta

$ run --tool

Console Color Code Generator

Pick colors and styles per line and get ready-to-paste console.log statements with ANSI escape codes.

Terminal preview

==============================================
πŸš€ Premium Node Server is now running!
πŸ”— Local URL: http://localhost:3000
==============================================

Code

console.log(`\x1b[32m%s\x1b[0m`, `==============================================`);
console.log(`\x1b[36m%s\x1b[0m`, `πŸš€ Premium Node Server is now running!`);
console.log(`\x1b[35m%s\x1b[0m`, `πŸ”— Local URL: http://localhost:3000`);
console.log(`\x1b[32m%s\x1b[0m`, `==============================================`);

Features

  • βœ“Multiple lines with independent colors/styles
  • βœ“Live terminal-style preview
  • βœ“Bold, dim, italic, underline and strikethrough support
  • βœ“Copy or download the ready-to-paste code

How to use

  1. 1Edit or add log lines
  2. 2Pick a text color, background and style for each line
  3. 3Copy the generated console.log code

Frequently asked questions

Does this work outside Node.js?+

ANSI escape codes work in most terminals (Node.js, bash, Python, etc.) but not in browser devtools consoles.

Related tools

Need a tool that isn't here yet?

ToolsForce is growing every week. Tell us what to build next.

Request a tool