Skip to content

Database CSV export cuts off long JSON cells #37151

Open

Description

@Illiou

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

When exporting database rows through the web interface, JSON cells with more that ~10 000 characters are cut off in the resulting CSV file (not sure about other data types).
I don't know if that was intended somewhere somehow, but it makes the data export useless, as well as dangerous because it silently omits data, and also makes the json content malformed.
Hope this can be fixed.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Go to the table editor in the web interface and view a table.
  2. Select one or multiple rows that have a JSON cell with more than ~11k characters
  3. Click the Export to CSV button above.
  4. Observe the resulting CSV file and see how not all the content of the JSON cell is in there.

Expected behavior

To download a CSV file with the full content of all selected rows and their cells.

Screenshots

This is what the cut off point in the CSV looks like:

Image

System information

  • OS: Windows 10
  • Browser: Firefox v140

Activity

  1. added
    bug
    on Jul 15, 2025
  2. added
    external-issue
    on Jul 15, 2025
  3. sajadmh commented on Aug 13, 2025

    @sajadmh

    +1 there was no warning that the CSV/JSON exports would silently cut off the jsonb column after 10k characters. Also, dumping the JSONL via pgdump outputs an invalid JSON since the jsonb column characters are not escaped.

    edit: you can use the SQL editor to query results and export from CSV there. The jsonb value won't be truncated in that export to CSV. The table editor's CSV export does silently keep the jsonb truncated, however.

  4. sgaburahf commented on Nov 3, 2025

    @sgaburahf

    Same happens if you export as SQL

  5. radzisz commented on Jan 29, 2026

    @radzisz

    Sam problem!

  6. added a commit that references this issue on Feb 14, 2026
    b558ae7
  7. added
    frontend
    pr-opened
    and removed on Apr 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugexternal-issuefrontendpr-opened

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions