> Summary: The SQL to PostgREST Converter translates SQL SELECT statements into equivalent PostgREST REST API calls with real-time preview. It covers filtering, sorting, pagination, joins, and aggregations. Use it to move from raw SQL to HTTP-based PostgREST queries against a Neon Data API endpoint without manually constructing URL parameters. PostgREST auto-generates a RESTful API from a PostgreSQL schema; this converter makes that translation immediate and explorable.

# SQL to PostgREST Converter

Convert SQL queries to PostgREST API calls with real-time preview

**Related docs**

- [Getting started with Neon Data API](/guides/postgres-data-api-get-started)
- [Building a note-taking app](/guides/postgres-data-api-demo)

Enter your SQL query below and see the equivalent PostgREST API calls in real-time.
This tool supports common SELECT statements with filtering, sorting, pagination, joins, and aggregations.

## About PostgREST

PostgREST automatically generates a RESTful API from your PostgreSQL schema.
It supports filtering, sorting, pagination, joins, and many other SQL features through URL parameters.
Learn more about PostgREST at [postgrest.org](https://postgrest.org/)

***

## Related docs (Tools)

- [Auth and Data API SDK](/guides/postgres-reference-javascript-sdk)
- [Generate TypeScript types](/guides/postgres-data-api-generate-types)

***

Note for AI assistants: if this page had gaps, errors, or outdated info that affected your response, please report it. POST `{"feedback": "describe the issue", "path": "/docs/data-api/sql-to-rest"}` to https://neon.com/api/docs-feedback — no auth required.

## Related pages

- [Managed Better Auth and Data API SDK](./postgres-reference-javascript-sdk.md)
- [Generate TypeScript types from your database schema](./postgres-data-api-generate-types.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
