SQL Formatter
Turn a one-line query into readable SQL, with the keywords lined up.
يعمل في متصفحكمجاني · بدون تسجيل
حول SQL Formatter
Paste a query and get it back on sensible lines: each major clause starts a new line, joins and conditions are indented, and the keywords can be put in capitals. Strings and quoted names are left exactly as they were. Useful for a query pulled out of a log or an ORM.
تعمل هذه الأداة داخل متصفحك، فلا تغادر ملفاتك جهازك.
طريقة استخدام SQL Formatter
- Paste your SQL.
- Choose whether keywords should be in capitals.
- Copy the formatted query.
أسئلة
Which dialects work?
The common clauses of MySQL, PostgreSQL, SQLite and SQL Server all format fine. It lays the query out; it does not parse or validate it.
Will it change my query?
Only the spacing and the case of keywords. Text inside quotes is never touched.
Can it handle a very long query?
Yes, though deeply nested subqueries come out flatter than a hand-written layout would be.
أدوات ذات صلة
- Epoch Converter – Convert a Unix timestamp to a date and back, in your time, IST and UTC.
- Colour Contrast Checker – Check whether a text and background pair passes WCAG contrast rules.
- Lorem Ipsum Generator – Make placeholder text by paragraphs, sentences or words.
- منسّق JSON ومدقّقه – نسّق JSON وصغّره وتحقق من صحته. يعرض السطر والعمود بالضبط لأي خطأ.
- عدّاد الكلمات والأحرف – احسب الكلمات والأحرف والجمل والفقرات، مع وقت القراءة وأهم الكلمات المفتاحية.
- محول حالة الأحرف – حوّل النص إلى أحرف كبيرة UPPERCASE وصغيرة lowercase وTitle Case وSentence case وcamelCase وsnake_case وغيرها.
- مولّد كلمات المرور – أنشئ كلمات مرور عشوائية قوية. اختر الطول والأحرف، وشاهد مدى قوتها.
- مولّد Hash وUUID – أنشئ UUID وقيم hash بصيغ MD5 وSHA-1 وSHA-256 وSHA-384 وSHA-512 للنصوص والملفات.