Skip to tool

Categories

File formats / 11 formats, every pair

SQL to HTML converter

Turn SQL into HTML — a `table` element with a head and a body — in this browser tab. Paste your SQL, copy the HTML: the quoting and escaping HTML needs are applied for you.

On-device prototype

SQL to HTML, worked out

3 rows and 4 columns: 11 lines of SQL become 30 lines of HTML.

SQL in

CREATE TABLE "imported_table" (
  "product" VARCHAR(255),
  "region" VARCHAR(255),
  "units" INTEGER,
  "unit price" DECIMAL(10, 2)
);

INSERT INTO "imported_table" ("product", "region", "units", "unit price") VALUES
  ('Desk lamp', 'EU', 128, 24.50),
  ('Chair', 'R&D', 64, 98.00),
  ('Monitor', 'APAC', 32, 249.99);

HTML out

<table>
  <thead>
    <tr>
      <th>product</th>
      <th>region</th>
      <th>units</th>
      <th>unit price</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Desk lamp</td>
      <td>EU</td>
      <td>128</td>
      <td>24.50</td>
    </tr>
    <tr>
      <td>Chair</td>
      <td>R&amp;D</td>
      <td>64</td>
      <td>98.00</td>
    </tr>
    <tr>
      <td>Monitor</td>
      <td>APAC</td>
      <td>32</td>
      <td>249.99</td>
    </tr>
  </tbody>
</table>

HTML result

<table>
  <thead>
    <tr>
      <th>product</th>
      <th>region</th>
      <th>units</th>
      <th>unit price</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Desk lamp</td>
      <td>EU</td>
      <td>128</td>
      <td>24.50</td>
    </tr>
    <tr>
      <td>Chair</td>
      <td>R&amp;D</td>
      <td>64</td>
      <td>98.00</td>
    </tr>
    <tr>
      <td>Monitor</td>
      <td>APAC</td>
      <td>32</td>
      <td>249.99</td>
    </tr>
  </tbody>
</table>

Conversions next to this one

Chosen from where these tools sit in the catalogue — the same workbench, the same category, the same words. Nothing here measures what you or anyone else opened.