Online Formatter PowerShell
Format PowerShell scripts online: auto‑indent blocks, clean whitespace, normalize line endings, and copy the result. Runs 100% client‑side in your browser.
- Online Formatter C++ (CPP) — Indent & Clean Code (Client‑Side)
- Online JSON Formatter (Pretty Print, Minify, Validate)
- Online Formatter (JSON, XML, HTML, CSS, SQL) — Free Client‑Side
- Online Title Case Converter (Free, Client‑Side)
- Online Pascal Case Converter (Free, Client‑Side)
- Online Kebab Case Converter (Slug Generator)
- Sitemap Formatter (Pretty XML, Minify & Extract URLs)
- CSV Tool for Linux — Validate, Convert & Analyze CSV Client-Side
How to use
Format your PowerShell code in seconds:
- Paste code into the input box.
- Pick indentation (spaces/tabs), indent size, and line endings.
- Click Format (or Clean whitespace).
- Copy the output or download it as a file.
FAQ
Does this PowerShell formatter upload my code?
No. Formatting runs entirely in your browser; nothing is sent to a server.
Is this a full PowerShell AST-based formatter?
No. It’s a lightweight formatter that focuses on braces-based indentation and whitespace cleanup, so edge cases may differ from IDE formatting.
Will it change my here-strings (@"..."@ / @'...'@)?
Here-string content is preserved (including braces inside it). Trailing whitespace inside here-strings is not trimmed.
What indentation rules are used?
Indentation is driven mainly by { and } outside strings/comments, plus a small extra indent for continuation lines and lines starting with |.
Can I convert tabs to spaces (or use tabs)?
Yes. Choose “Use tabs” for tab indentation, or leave it off to use spaces with your selected indent size.
Can I keep or normalize line endings (LF/CRLF)?
Yes. Pick “Keep as-is”, “LF”, or “CRLF” to match your repo or editor settings.
Why didn’t my block comment get re-indented?
Block comments (<# ... #>) are left as-is to avoid breaking carefully aligned comment content.
Continue your workflow
Browse related tools by task. Use the improved core tools for a consistent workspace with file import, downloads and clear validation errors.