Sonnet

How to open a JSON attachment on Android (WhatsApp, Telegram, email)

A colleague sends a config, a support team asks you to check an export, a friend shares a mod file. You tap the .json attachment on your Android phone, and nothing useful happens. Here’s what to do.

Short answer

Install a JSON viewer. Then tap the attachment and pick the viewer under Open with, or use Share and pick it there. If no app is offered, save the attachment to your phone first, then open it from inside the viewer (in Sonnet, Open file). Sonnet also shows up for attachments that chat apps label as generic files rather than JSON.

Get Sonnet free No ads, no account, works offline.

Why tapping the attachment doesn’t work

Android decides which apps can open a file from a label the sending app attaches to it, called the MIME type. A well-behaved app labels a JSON file application/json. Plenty of chat and email apps just label it as generic data (application/octet-stream) or plain text. If none of your apps accept that label, you get “No app can open this file”. If the label is plain text, a basic viewer may show the whole file as one unreadable line.

Sonnet accepts both the JSON labels and the generic ones, so it’s usually offered either way. If a particular app still doesn’t offer it, the save-first route below always works.

The method that always works: save first, then open

  1. Save the attachment to your phone (steps for each app below).
  2. Open Sonnet and tap Open file.
  3. Find the file in the system picker, usually under Downloads or Recent, and tap it.

Opening a saved copy has another advantage: you can edit it and save your changes, which an attachment opened straight from a chat often won’t allow.

App by app

Menu names move around between app versions. These were the usual labels as of September 2026.

WhatsApp

Telegram

Gmail and other email apps

Slack, Discord, Teams and browsers

Other things that go wrong

The file is a .zip

Exports often arrive zipped. Open the .zip in Files by Google or your phone’s file manager and choose Extract, then open the .json files inside one at a time.

The name ends in .json.txt

Some apps add .txt when saving. The contents are the same, so open it from inside Sonnet with Open file. You can also rename it in your file manager.

It opens but says “Invalid JSON”

Sonnet repairs missing or trailing commas and unclosed brackets on its own, so the problem is something else: another kind of syntax error, or a file that isn’t really JSON. For example, it might be an HTML error page someone saved as .json. See Invalid JSON: what the error means.

It’s very large

Sonnet opens files up to 20 MB for free. How to open a large JSON file covers bigger ones.

A word on privacy

Files people send each other for “can you take a look?” are often exactly the sensitive kind: exports with customer data, configs with API keys. Opening the file in an offline app keeps it on your phone. Pasting it into a website to format it doesn’t.

Open the next JSON attachment in one tap

Sonnet opens JSON from chats, email, your browser and your file manager as a clean, collapsible tree. Offline, no ads, no account. Free on Google Play, with an optional one-time Pro unlock for bigger files and search.

Get it on Google Play