Free tool

CSV to JSON converter

Turn a CSV file or a spreadsheet into JSON, and check every row in a table first. Free, and your file never leaves your device.

CSV, TSV or TXT. Up to 5 MB.

JSON shape

The first row gives the names. Each row after it becomes one object.

Options

Write it as

Show

Runs in your browser. Nothing you type is sent to Postfjord or saved.

Your content calendar lives in a spreadsheet, and the next tool in the chain wants JSON. You save the sheet as CSV, paste it here, and the JSON comes back in one step.

How to convert CSV to JSON

  1. Paste your CSV in the first box, or tap Choose a CSV file. No file at hand? Tap Try an example.
  2. The JSON shows right away. Pick Array of objects (each row becomes a record with names) or Array of arrays (each row stays a plain list).
  3. Tap Copy JSON, or Download file. On a phone the button says Save or share, so you can send the file to another app.

Tap Table to see every row in a grid. Search it, and tap a column name to sort. Open Options to pick the separator, turn numbers and true or false into real values, turn empty cells into null, or write the result as minified JSON, JavaScript, Python or JSON Lines.

Where the problem comes from

A CSV file is plain text. Each line is a row, and commas split the row into cells. That sounds easy, so many people split each line at the commas by hand or with a quick script.

Then a cell holds a comma. A caption like *Behind the scenes, part 2* has to sit inside quotes, and a quote inside a cell is written twice. A cell may also hold a line break. Some spreadsheet programs split cells with semicolons or tabs instead, depending on the country setting.

Why it bites

A quick split turns one caption into two columns. Every cell after it shifts one place to the right, so the Channel column says *part 2* and the Day column says *TikTok*. Nothing shows an error. The mistake only shows up when a post goes out wrong.

Numbers have their own trap. A phone number or a ZIP code like 02134 is text. If a converter turns it into a number, the zero is gone.

What this tool does and does not do

  • It reads quotes the standard way. A comma, a semicolon or a line break inside quotes stays inside its cell, and two quotes in a row become one quote. Empty lines are skipped.
  • It finds the separator. It checks the first five lines for tabs, commas, semicolons and pipes. The one that splits every line the same way wins, so 1,5 in a semicolon file stays a decimal. You can also pick one by hand.
  • Values stay text by default. Tick Turn numbers and true or false into real values and 128 becomes 128 and true becomes true. A value with a leading zero (02134) or more than 15 digits stays text, so no digit is lost. A number like 1.50 becomes 1.5. Dates always stay text.
  • Names come from the first row. An empty name becomes column_1, column_2 and so on. A name used twice gets _2, _3 after it. Untick The first row is a header to get column_1, column_2 for every row.
  • Short rows are filled. A row with fewer values than the widest row gets empty values, and the page tells you how many rows did. A row with more values gets extra columns, so nothing is cut.
  • Spaces around values are trimmed unless you untick that option.
  • The limit is 5 MB, which is tens of thousands of rows. For a bigger file, use a script or a database import.
  • It is not a spreadsheet. It does not read .xlsx files. In Excel or Google Sheets, choose Save as CSV first.
  • Everything runs in your browser. Your file is not sent to Postfjord and is not stored.

What it means on social media

A content calendar is often a spreadsheet, and a caption cell has to fit the platform. These are the text limits of each one.

  • Instagram and TikTok. A caption holds 2,200 characters.
  • X. A post holds 280 characters.
  • LinkedIn. A post holds 3,000 characters.
  • Pinterest. A pin description holds 800 characters.
  • YouTube. A description holds 5,000 bytes. An emoji or an accented letter takes more than one byte.

This tool does not count characters. Paste a long caption into the word counter to check it, and keep emoji and quotes in the cell. They survive the trip to JSON.

FAQ

How do I convert CSV to JSON?

Paste your CSV into the first box or open the file, and the JSON appears at once. Then tap Copy JSON or Download file.

My file uses semicolons or tabs. Will it work?

Yes. The tool detects commas, tabs, semicolons and pipes by itself. If it picks the wrong one, open Options and choose the separator.

What happens to commas and line breaks inside a cell?

They stay in the cell when the cell is in double quotes, which is how spreadsheets save them. The JSON holds the line break as \n.

What if my CSV has no header row?

Untick The first row is a header under Options. Every row becomes data, and the columns are called column_1, column_2 and so on.

Are numbers turned into numbers?

Not unless you ask. By default every value is text, so nothing changes by accident. Tick Turn numbers and true or false into real values to convert them.

Is my file uploaded anywhere?

No. The conversion happens on your device, and the page sends nothing to a server. The text you paste is kept in this browser tab so a reload does not lose it, and closing the tab deletes it.

More free tools

All 101 tools

Plan the posts in that spreadsheet

In Postfjord you write a caption once, pick the channels and schedule it for the time you want. Try it free.

Start free