// DEVELOPER TOOL

Supabase RLS policy builder

Generate row-level security policies for Supabase and Postgres: public, signed-in, owner-only, team and admin access, with the indexes and explanations.

  • Free
  • No sign-up
  • Private: runs in your browser
// HOW IT WORKS

4 steps, no sign-up.

Built and maintained by Ruchira Sachinthana. Spotted a bug or want a feature? Tell me.

  1. 01Enter your table name and the column that stores the owner's user id.
  2. 02Choose who may select, insert, update and delete rows.
  3. 03Review the generated SQL and the notes about each policy.
  4. 04Run it in the Supabase SQL editor, then test as a signed-out and a signed-in user.
// FAQ

Supabase RLS builder: questions, answered.

Something else? Ask on WhatsApp.

Writing (select auth.uid()) lets Postgres evaluate it once per query instead of once per row, which is much faster on large tables.

More free tools

All tools
// CUSTOM TOOLS

Need a tool like this built for your team?

Chat on WhatsApp