Skip to content

SQL Syntax Highlighter

Highlight SQL queries with coloured keywords, strings and numbers, exported as embeddable HTML.

Runs in your browserSQL → HTML
Loading tool…

Example

Input
SELECT name FROM users WHERE id = 7 AND role = 'admin';
Output
<pre class="hljs"><code class="language-sql"><span class="hljs-keyword">SELECT</span> name <span class="hljs-keyword">FROM</span> users <span class="hljs-keyword">WHERE</span> id <span class="hljs-operator">=</span> <span class="hljs-number">7</span> <span class="hljs-keyword">AND</span> role <span class="hljs-operator">=</span> <span class="hljs-string">&#x27;admin&#x27;</span>;</code></pre>

How to use the SQL Syntax Highlighter

  1. Paste or type your SQL into the input area, or open a file from your device.
  2. Adjust the options above the editor if the tool offers any.
  3. Review the HTML result, then copy it or download it as a file.

Privacy and limitations

  • Your data is processed on your device and is not uploaded to any server.

Browse all syntax highlighting →