Withdata Software

Import multiple JSON files to a single PostgreSQL table

Want to import multiple JSON files into a single PostgreSQL table?

Try Withdata FileToDB, a desktop JSON to PostgreSQL converter for Windows, MacOS, and Linux, Import JSON to PostgreSQL, Easy and Fast.

Download Withdata FileToDB
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

Import multiple JSON files into a single PostgreSQL table

Login to PostgreSQL -> Choose JSON files -> Set PostgreSQL table -> Import JSON files to PostgreSQL table

Choose PostgreSQL and logon.

Click “Wizard – N Files To 1 Table” at task dialog.

Select the “JSON” file type.

then show the wizard.

1. Select a folder that constains JSON files.

Support large ( > 4GB ) JSON file.

2. Config first JSON file importing options.

3. Select a PostgreSQL table and config fields.

4. Preview data will be in PostgreSQL table.

5. Import multiple JSON files to the PostgreSQL table.

View imported data in PostgreSQL table

Convert JSON files to PostgreSQL in command line

Save “JSON to PostgreSQL” session, then you can:

Set scheduled tasks for converting JSON files to PostgreSQL

You can schedule and automate this “JSON to PostgreSQL” conversion task by:

  1. Save session and create .bat (Windows) or .sh (Linux/macOS) file for “JSON to PostgreSQL” conversion.
  2. Set scheduled task for “JSON to PostgreSQL” conversion.

FAQ

What is Withdata FileToDB?
Withdata FileToDB is an ETL software can import JSON data to databases. Download Withdata FileToDB
How long does it take to import JSON data to PostgreSQL?
FileToDB works fast. It convert millions of rows within a minute.
Is it safe to import JSON data to PostgreSQL using FileToDB?
Of course! FileToDB import JSON data to PostgreSQL locally, absolutely safe.
Can I import JSON data to PostgreSQL on Linux, Mac OS?
Yes, you can. FileToDB has Linux, Mac OS, and Windows version.
Can I import JSON data to PostgreSQL in command line?
Yes, you can. FileToDB can running in command line, on Linux, Mac OS, and Windows.


More about Withdata FileToDB – JSON to PostgreSQL converter

See also:

JSON → PostgreSQL reference

Type mapping

Value kindin JSONin PostgreSQL
Int1234 (number)integer
Bigint9007199254740993bigint
Decimal1234.56 (number)numeric(p,s)
Float1.234e10 (number)double precision
Text"text" (string)varchar(n)
Long text"multi-line\ntext" (escaped newline inside a string)text
Date"2026-09-18" (string)date
Datetime"2026-09-18T14:30:00Z" (string)timestamp
Binary"base64:..." (string)bytea
Booleantrue / false (boolean)boolean
JSONnested object or array, kept as structurejsonb

Dialect differences

JSON is a file format and PostgreSQL is a database server, so the target has to be told the types the file never carried - the rows below are where the two sides diverge.

Propertyin JSONin PostgreSQL
port—5432
identifiersDouble quotes; backslash escapes"double quotes"
row limit—LIMIT n
datesNo date type: dates arrive as strings and the reader must p...timestamp, timestamptz, date, time
long text—TEXT
binaryNot supported natively - base64 inside a stringBYTEA
separatorBraces and commas—
encodingUTF-8 by definition—
typingstring, number, boolean, null, object, array - no date type—
shapeNested objects and arraysTables of rows and columns
ceilingWhole document is usually parsed into memory—

Command line

SideCommand
PostgreSQLpg_dump or COPY ... TO
PostgreSQL (load)COPY ... FROM

JSON to PostgreSQL without the manual work

For batch jobs, large files and scheduling use the JSON to PostgreSQL converter — an offline desktop app for Windows, Linux and macOS. Free trial.