BeanNestTools

Code formatter

Format source with Prettier, without uploading it.

Choose a language, set indent and print width, and keep the source and formatted result separate. Formatting runs locally in a browser worker.

Runs locallyNever executes code1 MiB source limit

Code formatter workspace

Source

0 characters · 0 / 1,048,576UTF-8 bytes

Drop a file on this card. Filename can suggest language; your manual choice always wins. JSON and SQL have dedicated tools.

Result

Ready

How to use

Paste code or choose a local file, confirm the language, set indent and print width, then press Format code. Copy or download the result without overwriting your source.

Privacy

Formatting runs entirely in your browser through a dedicated worker. Source and result stay in page memory and are not added to URLs, storage, analytics, or remote processing requests.

Limitations

Supported languages are JavaScript, TypeScript, JSX, TSX, CSS, SCSS, Less, HTML, Vue, Angular HTML templates, GraphQL, Markdown, MDX, and YAML. Source is limited to 1 MiB and is never executed, compiled, linted, or imported. Use theJSON Formatter orSQL Formatter for those jobs. Very large results may hide the on-page preview while Copy and Download remain available.

Keep checking

More developer tools

JSON Formatter & Validator

Validate, pretty-format, or minify strict JSON locally with useful parse errors, copy, and safe file download.

Open tool →

SQL Formatter

Format SQL for Standard SQL, MySQL, MariaDB, PostgreSQL, SQLite, SQL Server, BigQuery, and Snowflake locally without connecting or executing queries.

Open tool →

Base64 Encode & Decode

Encode UTF-8 text to standard Base64 or Base64URL and strictly decode it back to text without sending source content away.

Open tool →

SHA-2 Hash Generator

Generate SHA-256, SHA-384, and SHA-512 fingerprints for local text or bounded local files using browser Web Crypto.

Open tool →