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 →

Working notes

How to use this tool

  1. Paste source code or open a local file in a supported language.
  2. Select the language and formatting options.
  3. Format the document and review the result before replacing the original.
  4. Copy or download the formatted output; the source is never executed.

Limits to know

Formatting changes whitespace and layout, not program behavior. A parser may still reject invalid syntax, and some language features or very large documents can exceed the browser workspace. The formatter never runs the code, resolves imports, installs dependencies, or type-checks a project.

What stays on this device

Source text is formatted in this tab. BeanNest does not receive, execute, or persist the code.

Common questions

Does formatting make my code valid?

No. A formatter can lay out code that still contains syntax errors, and it may refuse input it cannot parse. Fix parse errors first, then format.

Are my comments and strings preserved?

The formatter preserves program text according to the language parser, but it may wrap or reindent comments and sometimes changes quote style based on options. Review the diff before replacing a working file.