SQL Formatter
Turn a one-line query into readable SQL, with the keywords lined up.
Chạy ngay trong trình duyệt của bạnMiễn phí · không cần đăng ký
Giới thiệu 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.
Công cụ này chạy ngay trong trình duyệt của bạn, nên tệp không bao giờ rời khỏi thiết bị.
Cách dùng SQL Formatter
- Paste your SQL.
- Choose whether keywords should be in capitals.
- Copy the formatted query.
Câu hỏi
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.
Công cụ liên quan
- 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.
- Định dạng & kiểm tra JSON – Làm đẹp, rút gọn và kiểm tra JSON. Chỉ ra chính xác dòng và cột của mọi lỗi.
- Đếm từ & ký tự – Đếm từ, ký tự, câu và đoạn văn, kèm thời gian đọc và các từ khóa nổi bật.
- Đổi kiểu chữ hoa thường – Đổi văn bản sang CHỮ HOA, chữ thường, Viết Hoa Mỗi Từ, Viết hoa đầu câu, camelCase, snake_case và nhiều kiểu khác.
- Tạo mật khẩu – Tạo mật khẩu ngẫu nhiên mạnh. Chọn độ dài và ký tự, và xem mật khẩu mạnh đến đâu.
- Tạo hash & UUID – Tạo UUID và hash MD5, SHA-1, SHA-256, SHA-384 hoặc SHA-512 của văn bản và tệp.