---
title: SQL to PostgREST Converter
subtitle: Convert SQL queries to PostgREST API calls with real-time preview
summary: >-
  How to convert SQL queries into PostgREST API calls with real-time previews,
  supporting features like filtering, sorting, pagination, joins, and
  aggregations.
enableTableOfContents: false
updatedOn: '2026-02-06T22:07:32.815Z'
---

<InfoBlock>
  <DocsList title="Related docs" theme="docs">
    <a href="/docs/data-api/get-started">Getting started with Neon Data API</a>
    <a href="/docs/data-api/demo">Building a note-taking app</a>
  </DocsList>
</InfoBlock>

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.

<SqlToRestConverter />

## 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/)
