SQL Formatter
Turn a one-line query into readable SQL, with the keywords lined up.
Berjalan di browser kamuGratis · tanpa daftar
Tentang 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.
Alat ini berjalan di browser kamu, jadi file kamu tidak pernah keluar dari perangkat.
Cara memakai SQL Formatter
- Paste your SQL.
- Choose whether keywords should be in capitals.
- Copy the formatted query.
Pertanyaan
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.
Alat terkait
- 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.
- Pemformat & Validator JSON – Rapikan, perkecil, dan validasi JSON. Menunjukkan baris dan kolom tepat dari setiap kesalahan.
- Penghitung Kata & Karakter – Hitung kata, karakter, kalimat, dan paragraf, lengkap dengan waktu baca dan kata kunci teratas.
- Pengubah Huruf Besar Kecil – Ubah teks menjadi HURUF BESAR, huruf kecil, Title Case, Sentence case, camelCase, snake_case, dan lainnya.
- Pembuat Kata Sandi – Buat kata sandi acak yang kuat. Pilih panjang dan karakter, lalu lihat seberapa kuat hasilnya.
- Pembuat Hash & UUID – Buat UUID dan hash MD5, SHA-1, SHA-256, SHA-384, atau SHA-512 dari teks dan file.