Paste any code — Java, Python, C, C++, HTML, and more — and see it syntax-highlighted in one place. Runs entirely in your browser.
Formatted & highlighted (Python)
7 lines
Supports 18 languages plus plain text — JavaScript, TypeScript, Python, Java, C, C++, C#, Go, Rust, PHP, Ruby, SQL, JSON, YAML, HTML/XML, CSS, Bash, and Markdown. Language auto-detection is a best-effort heuristic — use the dropdown to override it. Auto-format uses a real formatter for JavaScript/TypeScript/CSS/HTML/JSON/YAML/Markdown/SQL, basic re-indentation for Java/C/C++/C#/Go/Rust/PHP, and leaves Python/Ruby/Bash exactly as typed (their whitespace can be part of the code's actual meaning, so it's safer not to guess).