editsqlite runs in your tab · nothing uploads

Converters · Postgres → SQLite

Convert a Postgres dump to SQLite — in your browser

A pg_dump file is the portable form of a PostgreSQL database, but it only speaks Postgres. To get a .sqlite out of it the usual way, you'd restore the dump into a running Postgres and then convert. editsqlite reads the dump straight — COPY blocks and all — and hands you a SQLite file, without a database server anywhere in sight and without the data leaving your machine.

How to convert Postgres to SQLite

  1. Produce the dump. A plain-format dump works either way: pg_dump --inserts mydb > mydb.sql, or a default COPY-format dump.
  2. Open it here. Click Open a database and choose the .sql file, or drop it on the page. The parser handles COPY ... FROM stdin data, \N nulls and Postgres escapes.
  3. Review the tables. Each table opens in the grid; edit cells or run a SELECT to check the import.
  4. Export the .sqlite. Click ⬇ .sqlite (certified) to download the fresh database.

Convert a Postgres dump now →

COPY blocks, handled the way pg_dump writes them

Most browser converters choke on a default pg_dump because the rows aren't INSERT statements at all — they're a COPY block of tab-separated lines terminated by a lone \.. editsqlite reads that block directly: tabs split the fields, \N becomes NULL, and \t, \n, \r and \\ are un-escaped the way Postgres wrote them. So you don't have to re-dump with --inserts just to get it to read.

Good to know

Other conversions