VBScript has no maintained formatter library, so this re-indents your code using block keywords only — it doesn't reflow spacing or fix syntax. Review the result before using it.

Input

Output

Formatted output will appear here.

VBScript Formatter

Paste or import VBScript above and click Prettify to reformat it with consistent indentation and spacing — free, in your browser, with nothing uploaded to a server. Note: this is a best-effort re-indenter, not a full parser (see the notice above the editor).

Best-effort indentation

VBScript has no maintained browser formatter here, so this page recomputes indentation from block keywords instead of parsing the full language.

Manual review needed

Spacing, line continuations, and syntax errors are not fixed. Review the result before using it in production scripts.

Other formatters

Need to convert Markdown instead? Try the free Markdown to Word/HTML/PDF converter.

Need to run some numbers? Try the free online calculators.

Frequently asked questions

Is there a real VBScript formatter?+

No maintained VBScript parser/formatter exists in any major ecosystem. This tool re-indents your code based on block keywords (If/For/Do/Sub/...) — it doesn't reflow spacing or fix syntax.

What does it actually fix?+

Only indentation, recomputed from a stack of open If/For/Do/While/Sub/Function/Select Case/With/Class/Property blocks.

Is my code sent to a server?+

No. Formatting runs entirely in your browser.

More formatters

JSON formatter · JavaScript formatter · TypeScript formatter · CSS formatter · YAML formatter · C formatter · C++ formatter

We use cookies to show ads via Google AdSense. See our Privacy Policy for details.