Withdata Software

Convert TSV to SQL

Want to convert TSV file to SQL file?

If you want to import TSV file to SQL Server, see this page: TSV to SQL Server.

If you want to import TSV file to SQLite, see this page: TSV to SQLite.

Try Withdata Data File Converter, a desktop TSV to SQL converter for Windows, MacOS, and Linux, Convert TSV to SQL, Easy and Fast.

Download Withdata DataFileConverter
Windows 64 bit
Windows 32 bit
Linux .deb (For Debian, Ubuntu) 64 bit
Linux .rpm (For Red Hat, Fedora, SUSE) 64 bit
MacOS 64 bit

Convert TSV to SQL

Choose TSV file -> Set SQL file -> Convert TSV to SQL

“Start a New Convert” for “TSV to SQL”.

Select From “File” “TSV” To “File” “SQL”.

1. Open source TSV file.

Support large TSV file ( > 4GB ).

Source TSV file’s content is like this:

2. Config target SQL file.

3. Set rows options.

4. Convert TSV to SQL.

After converting, you can view the output SQL file.


More about TSV to SQL converter

See Video: Convert TSV file to SQL file without coding

See also:

TSV → SQL reference

Type mapping

Value kindin TSVin SQL
Int1234INT
Bigint9007199254740993BIGINT
Decimal1234.56DECIMAL(p,s)
Float1.234e+10DOUBLE PRECISION
Textunquoted; a tab in the value splits the columnVARCHAR(n)
Long textunquoted; newlines break the rowTEXT / CLOB
Date2026-09-18DATE
Datetime2026-09-18 14:30:00TIMESTAMP
Binarynot representableBLOB / BYTEA
BooleanTRUE / FALSEBOOLEAN / SMALLINT
JSONthe whole JSON value as-is (its own quotes stay)JSON / TEXT

Dialect differences

Both TSV and SQL are file formats, so what differs below is how each one chooses to represent a value.

Propertyin TSVin SQL
identifiersRarely used, which is exactly why tabs in data break itTwo competing conventions: single-quoted literals and diale...
datesConventional text: 2026-09-18 or 2026-09-18 14:30:00Depends on the dialect: DATE literals, TO_DATE(), or plain ...
binaryNot supported - must be encodedDialect-specific: X-quoted literal, 0x hex, or decode()
separatorTabStatement terminators (;)
encodingNo declaration - UTF-8 works only with a BOMNo declaration
typingNone - every field is textTypes belong to the target database, and they differ betwee...
shapeFlat table, optional header rowStatements; a dump usually means CREATE TABLE plus INSERT rows
ceilingNo formal limitNo formal limit, but a single INSERT statement has to fit i...

Convert TSV to SQL the easy way

Use the TSV to SQL converter — an offline desktop app for Windows, macOS and Linux. Nothing to upload, large files and batch runs supported (free trial).

New to the format? Read what a TSV file is (and how it differs from CSV).