Htpasswd Generator
Generate .htpasswd lines with bcrypt, APR1-MD5 or SHA-1.
Turn a CSV export into INSERT statements, with column types inferred.
The CSV to SQL converter turns a spreadsheet export into INSERT statements: the header row becomes the column list, quotes are escaped, blanks become NULL, and column types are decided from the whole column rather than cell by cell.
Loading a spreadsheet export into a database usually means either an import wizard you do not trust or statements you write by hand. This generates the statements: the header row becomes the column list, each data row becomes a set of values.
The escaping and typing are where hand-written SQL goes wrong. Single quotes inside a value are doubled, which is the standard escape and works in every major database. Column types are decided from the whole column rather than cell by cell, so one blank does not turn a numeric column into text. Blank cells become NULL rather than empty strings. You can emit one statement per row, or a single batched insert that loads far faster, plus an optional CREATE TABLE.
A quoted field containing commas, line breaks or doubled quotes is read as one value, which is where naive splitting corrupts a row.
One blank cell does not turn a numeric column into text, because the type is decided from every value at once.
An empty cell is written as NULL rather than an empty string, which is almost always what a database import should mean.
Spaces and punctuation in a header become underscores and a leading digit is prefixed, so the statement parses.
One multi-row INSERT for a fast bulk load, or a statement per row when you need to run them selectively.
Include the header row — it becomes the column names.
Set the target table and choose your SQL dialect for the right quoting.
One INSERT per row for readability, or a single batched insert for a fast load.
Add the CREATE TABLE first if the table does not exist yet.
The reader follows RFC 4180, so a quoted field containing commas, line breaks or doubled quotes is read as one value rather than being split.
From every value in the column at once. A column whose non-blank values are all numeric becomes BIGINT or DOUBLE; all true/false becomes BOOLEAN; anything else becomes VARCHAR(255).
They become NULL rather than an empty string, which is almost always what a database import should mean.
For a bulk load, substantially — one statement for a thousand rows is far faster than a thousand statements. Use single rows when you need to run them selectively.
What people who use the CSV to SQL think of it. Reviews come from visitors and are posted as written.
No ratings yet
Yours would be the first.
0 reviews
Newest first
No reviews yet
Be the first to rate the CSV to SQL. It takes half a minute and no account.
Write the first reviewGenerate .htpasswd lines with bcrypt, APR1-MD5 or SHA-1.
Convert HTML back into clean Markdown, keeping lists, tables and code.
Convert JSON to clean, correctly quoted YAML in one step.
Convert JSON into a PHP array literal or a typed class you can paste into a project.
Reveal tabs, non-breaking spaces and zero-width characters in your text.
Pick an open source licence and get a LICENSE file with your details.
Convert an IPv4 address into every IPv6 form that carries it, and back.
Build layered box shadows visually, with a live preview.