Shell Formatter
Paste a Bash or POSIX shell script and it is parsed and re-printed by mvdan/sh, the library behind shfmt, running as WebAssembly. Syntax errors are reported with a line number.
FAQ
- How do I format Shell online?
- Paste your Shell into the input pane and press Format (⌘/Ctrl + Enter). Pretty Lush formats it with mvdan/sh (shfmt) compiled to WebAssembly in your browser and shows the result side by side, ready to copy, download or share.
- Can it convert a cURL command to code?
- Yes. Paste a command that starts with curl and Pretty Lush offers to convert it to fetch, axios or Python requests.
- Is my code uploaded anywhere?
- No. Formatting runs entirely in your browser; the code you paste is not sent to a server. The only feature that talks to a backend is the optional encrypted share link, which encrypts the snippet in your browser first.