🍋 Developer Tools

SQL Formatter

Format and minify SQL queries

Free في المتصفح فقط No sign-up
chars words sentences lines

الخيارات

Type or paste something into the Input box to enable this button.

النتائج

النتيجة

حول SQL Formatter

Format messy SQL queries into readable, indented code or minify formatted SQL into a single line. Supports keyword uppercasing.

كيف يعمل

Tokenizes the SQL string and inserts line breaks and indentation after major keywords (SELECT, FROM, WHERE, JOIN, etc.). Minify mode removes extra whitespace and joins everything to one line.

خطوة بخطوة

  1. 1 ['Paste a SQL query in the input area', 'Choose action: Format or Minify', 'Set indentation (2 or 4 spaces)', 'Toggle keyword uppercasing', 'Click Format']

نصائح

  • [
  • '
  • U
  • p
  • p
  • e
  • r
  • c
  • a
  • s
  • e
  • d
  • k
  • e
  • y
  • w
  • o
  • r
  • d
  • s
  • (
  • S
  • E
  • L
  • E
  • C
  • T
  • ,
  • F
  • R
  • O
  • M
  • ,
  • W
  • H
  • E
  • R
  • E
  • )
  • a
  • r
  • e
  • t
  • h
  • e
  • i
  • n
  • d
  • u
  • s
  • t
  • r
  • y
  • c
  • o
  • n
  • v
  • e
  • n
  • t
  • i
  • o
  • n
  • f
  • o
  • r
  • r
  • e
  • a
  • d
  • a
  • b
  • i
  • l
  • i
  • t
  • y
  • '
  • ,
  • '
  • U
  • s
  • e
  • m
  • i
  • n
  • i
  • f
  • y
  • t
  • o
  • c
  • o
  • m
  • p
  • r
  • e
  • s
  • s
  • S
  • Q
  • L
  • f
  • o
  • r
  • U
  • R
  • L
  • s
  • o
  • r
  • c
  • o
  • n
  • f
  • i
  • g
  • u
  • r
  • a
  • t
  • i
  • o
  • n
  • f
  • i
  • l
  • e
  • s
  • '
  • ,
  • '
  • T
  • h
  • e
  • f
  • o
  • r
  • m
  • a
  • t
  • t
  • e
  • r
  • h
  • a
  • n
  • d
  • l
  • e
  • s
  • c
  • o
  • m
  • m
  • o
  • n
  • S
  • Q
  • L
  • d
  • i
  • a
  • l
  • e
  • c
  • t
  • s
  • i
  • n
  • c
  • l
  • u
  • d
  • i
  • n
  • g
  • M
  • y
  • S
  • Q
  • L
  • ,
  • P
  • o
  • s
  • t
  • g
  • r
  • e
  • S
  • Q
  • L
  • ,
  • a
  • n
  • d
  • S
  • Q
  • L
  • i
  • t
  • e
  • '
  • ]

الأسئلة الشائعة