Dan's Tools www.cleancss.com/sql-beautify

SQL Viewer, Formatter, Editor

    Join Login
  • Development
    • HTML/JS/CSS Playground
    • HTML Color Codes
    • CSS Fonts
    • Online Diff Tool
    • .htaccess Generator
    • Javascript Error Logger
    • RegEx Testing
    • RGB to HEX Color Converter
    • TimeStamp Converter
    • Website Speed Test
  • Encode/Decoders
    • Base64 Decode
    • Base64 Encode
    • MD5 Hash Generator
    • SHA-1 Hash Generator
    • SHA-256 Hash Generator
    • SHA-512 Hash Generator
    • URL Encode/Decode
  • Formatters
    • CSS Formatter
    • GO Formatter
    • HTML Beautifier & Formatter
    • Javascript Formatter
    • Javascript Obfuscate
    • JSON Formatter & Beautifier
    • JSON Editor
    • JSON Validator
    • Perl Formatter
    • PHP Formatter
    • Python Formatter
    • Ruby Formatter
    • SQL Formatter
    • XML Formatter & Beautifier
  • Images
    • Favicon.ico & App Icon Generator
    • Online Image Editor
    • CSS Sprite Generator
  • Internet
    • Color Palette Explorer
    • Email Validator
    • Explain Linux Commands
    • Is It Up Or Down
    • Default Router Settings
    • User Manuals
    • What is my IP
  • Minifiers
    • CSS Minify
    • Javascript Minify
    • JSON Minify
  • SEO
    • Adblock Monitor & Notification
    • Keyword Tool
  • Conversion
    • CSV To HTML Converter
    • CSV To JSON Converter
    • CSV To TSV Converter
    • CSV To XML Converter
    • JSON To CSV Converter
    • JSON To HTML Converter
    • JSON To TSV Converter
    • JSON To XML Converter
    • XML To CSV Converter
    • XML To HTML Converter
    • XML To JSON Converter
    • XML To TSV Converter
    • Convert Files
  • Numbers
    • Binary Converter
    • Binary To Decimal Converter
    • Binary To Hex Converter
    • Binary To Octal Converter
    • Unit Converter
    • Decimal To Binary Converter
    • Decimal To Hex Converter
    • Decimal To Octal Converter
    • Hex To Binary Converter
    • Hex To Decimal Converter
    • Hex To Octal Converter
    • Data Size Converter
    • Octal To Binary Converter
    • Octal To Decimal Converter
    • Octal To Hex Converter
  • Strings
    • Binary To String Converter
    • Hex To String Converter
    • HTML Entities Escape
    • HTML Entities Unescape
    • String To Binary Converter
    • String To Hex Converter
    • Strip and Remove HTML Tags
    • Strip and Remove XML Tags
    • Word Counter
    • XML Entities Escape
    • XML Entities Unescape
  1. Related:
  2. Perl Formatter
  3. PHP Formatter
  4. Python Formatter
  5. Ruby Formatter
  6. XML Formatter & Beautifier
  7. Donate!
  • Tweet Follow @danstools00  

Format Code





HTML <style>, <script> formatting:

SQL Viewer, Formatter, Editor

Enter your messy, minified, or obfuscated SQL into the field above to have it cleaned up and made pretty. The editor above also contains helpful line numbers and syntax highlighting. There are many option to tailor the beautifier to your personal formatting tastes.

When do you use SQL Viewer, Formatter, Editor

Often when writing SQL your indentation, spacing, and other formatting can become a bit disorganized. It is also common for multiple developers to work on a single project who have different formatting techniques.  This tool is helpful for making the formatting of a file consistent. It is also common for SQL to be minified or obfuscated. You can use this tool to make that code look pretty and readable so it is easier to edit.

Examples

The minified SQL below:


Becomes this beautified :


© Dan's Tools | Contact | Privacy | About | For more dev tools, check out danstools.com

Donate


BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76

Login

If you don't already have an account, Register Now



Join

Join to access discussion forums and premium features of the site.




Please Share!

Thank you for using my tool. If you could share this tool with your friends, that would be a huge help:
Tweet
submit to reddit


Or follow us to learn about our latest tools:
Follow @danstools00