Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

Code syntax checker

Check code in 20 languages for unmatched brackets, unclosed strings and comments, Python indentation, HTML tags, JSON errors and pasted curly quotes.

How to use

  1. Paste your code. The language is guessed for you; pick it yourself if the guess is wrong.
  2. Read the problems: each one names the line and column. Press the line button to select that line in the box.
  3. Fix the first problem first: one missing bracket or quote often causes the others.
  4. Check the Worth a look notes for invisible characters, mixed tabs and spaces, or mixed line endings.

Keyboard and touch

TabMove to the next control
TypingThe check runs a moment after you stop typing
EnterOn a line button: select that line in your code

Tips

  • Curly quotes “ ” ‘ ’ are the most common copy-paste error: code from a document, chat or slide often has them. Programs need straight quotes " and '.
  • An error reported on the last line usually starts much earlier: look for the bracket or quote that was opened and never closed.
  • In Python, indent with 4 spaces and never mix tabs and spaces.
  • For YAML files use our YAML validator, and for JSON pick JSON here: both give the exact line and column.
  • Passing these checks does not mean the program runs: names, types and logic are only checked by the real compiler or interpreter.

About this checker

It reads the code the way each language does for its basic structure: comments, strings (with each language's quotes and escapes, Python triple quotes, JavaScript template literals and regular expressions, Go raw strings, C# verbatim strings, SQL doubled quotes, shell single quotes), then matches every bracket. Python gets an indentation check like the interpreter's own; shell scripts get if/fi, case/esac and do/done pairs; HTML and XML get tag nesting; JSON gets a full reader that points at the exact character.

Languages: JavaScript and TypeScript, Python, Java, C and C++, C#, Go, Rust, Kotlin, Swift, PHP, Ruby, shell, PowerShell, SQL, Lua, R, CSS and SCSS, HTML, XML and SVG, and JSON. It does not run or compile anything, so it cannot find wrong names, types or logic.

Nothing is stored or sent: your code stays on your device.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product