Source Code Beautifier

Online formatter and beautifier for ugly source code

Beautify and unminify your code.

Javascript
JSON
CSS
HTML
XML
Beautify Code (Control+Enter)
Unpack / Deobfuscate
⤓ Save to device
Select a theme:

HTML <style>, <script> formatting:

Additional Settings (JSON):












Keep in mind

  • Always keep a backup and verify your code before publishing!
  • We use local storage to improve user experience.
  • This website doesn't send your code to the server and doesn't save it.
  • Please report if you find an error or you have any suggestion.

Commands

Commands are parameter-less actions that can be performed on an editor. Their main use is for key bindings.

Ctrl-Enter
Beautify Code.
Ctrl-A (PC), Cmd-A (Mac)
Select the whole content of the editor.
Ctrl-D (PC), Cmd-D (Mac)
Deletes the whole line under the cursor, including newline at the end.
Ctrl-Z (PC), Cmd-Z (Mac)
Undo the last change.
Ctrl-Y (PC), Cmd-Y (Mac)
Redo the last undone change.
Ctrl-F (PC), Cmd-F (Mac)
Find
Ctrl-G (PC), Cmd-G (Mac)
Find Next
Shift-Ctrl-G (PC)
Shift-Cmd-G (Mac)
Find Previous
Shift-Ctrl-F (PC)
Cmd-Alt-F (Mac)
Replace
Shift-Ctrl-R (PC)
Shift-Cmd-Alt-F (Mac)
Replace All
Javascript Beautifier JSON Beautifier CSS Beautifier HTML Beautifier XML Beautifier