Tested tool guide
Tested browser tools
Checked August 16, 2026
What Prettier Playground does, with a checked example
This playground runs Prettier in the browser: paste JavaScript, TypeScript, CSS, HTML, JSON or Markdown, and the code is reformatted under Prettier's rules with the full option set - printWidth, quotes, semicolons, trailing commas, indentation and more - exposed as controls. Formatting works by parsing the input into a syntax tree and reprinting it, not by patching lines, so two things surprise first-time users: syntactically invalid input yields an error rather than a partial cleanup, and output can differ from a local run when the bundled Prettier version's defaults differ from the one on your machine.
Worked example
A concrete input and expected output from the current implementation.
Input
const config={host:"localhost",port:3000,retries:5,timeout:10000,verbose:false}; ->
Expected output
const config = {
host: "localhost",
port: 3000,
retries: 5,
timeout: 10000,
verbose: false,
}; The single-line object is 94 characters, past the default print width of 80, so the literal reprints with one property per line at two-space indent. The rest is defaults: double quotes, a space inside the braces, and a trailing comma, which both the "es5" default (Prettier 2) and "all" default (Prettier 3) add to object literals.