Current language: JavaScript
Input code
Formatted output
Formatted code will appear here.
The online code formatter helps normalize source code before committing, sharing, or pasting it into another tool. It runs Prettier in the browser for common web, config, document, and data languages, supports auto detection and manual language selection, and remembers indentation, quote, semicolon, trailing comma, and wrapping preferences without uploading code.