Text Transformer

Clean up messy text, change its case and convert CSV to JSON or JSON to CSV in one pass. Paste the content, pick the transformations and copy the result.

Choose the transformations and paste your text

CLEAN UP AND SPACING

FORMAT TEXT

FORMAT CONVERSION

Rate this Tool

0.0/5

Based on 0 user ratings.

How the text transformer works

The tool applies the selected operations in a fixed order: first the spacing and character clean-up, then the case changes, then the CSV or JSON conversion. That order matters because a conversion expects a tidy input, and changing the case after converting JSON would also change the keys. If you leave every switch off, the output is the text you pasted, unchanged.

All processing happens on the server for this request, and the output is shown on the same page. Nothing is stored after you leave; if you reload the page, the field starts empty again.

Text clean-up operations

The first group repairs text that was copied from a PDF, a spreadsheet or a messaging app, where spacing and line endings are often inconsistent.

Operation What it changes Example
Normalise line breaks Converts Windows CRLF and old Mac CR endings to a single LF. line1\r\nline2 becomes line1\nline2
Collapse repeated spaces Replaces runs of two or more spaces with one space. too   many becomes too many
Tabs to 4 spaces Expands every tab character into four spaces. \titem becomes     item
Remove accents Drops combining marks using Unicode NFD normalisation. café, ação becomes cafe, acao

Collapsing spaces only touches spaces and runs of spaces; it does not remove line breaks. Remove accents uses NFD decomposition, so it works for accented Latin characters such as á, é, í, ó, ú, ã, õ and ç. It does not translate letters that are different characters by design, such as ø or ß.

Case conversion

The second group changes capitalisation. Choose only one case option per run; if you enable both lowercase and uppercase, the uppercase runs last and wins. Sentence case capitalises the first letter after a full stop and leaves the rest of each sentence in lowercase.

Use sentence case to fix text written in all caps, lowercase for comparisons or tags, and uppercase for headings or codes. For a dedicated case tool with more options such as title case and alternating case, use the Case Converter.

CSV and JSON conversion

The conversion group reads the cleaned text as CSV or JSON, depending on the switch you enable. CSV to JSON treats the first row as the header and produces an array of objects with two-space indentation. JSON to CSV expects an array of flat objects and writes the keys of the first object as the header row.

Both directions accept a custom separator. The default is a comma, but a semicolon is common in files exported by European spreadsheet settings, and a tab is common in pasted table data. Set the input separator to match your file and the output separator to match the system that will import the result.

CSV input

name,role
Ana,Analyst
Bruno,Developer

JSON output

[
  {"name": "Ana", "role": "Analyst"},
  {"name": "Bruno", "role": "Developer"}
]
Paste text text, CSV, JSON Clean up spaces, accents Convert case, CSV/JSON Copy result

Nested JSON objects and arrays inside a field are written as their Python string representation when converting to CSV. Flatten the data first if you need every nested value in its own column.

Common uses

Preparing spreadsheets

Clean a column pasted from a PDF, remove accents from names and convert the rows to JSON for an API import.

Normalising copy

Fix text that arrived in all caps, collapse double spaces left by copy-paste and remove tabs from a draft before publishing.

API and test data

Turn a small CSV fixture into a JSON array for a test, or export a JSON response to CSV to inspect it in a spreadsheet.

Slugs and identifiers

Remove accents and lowercase a list of titles before building URLs; finish with the dedicated Slug Generator.

Limitations

  • The text is processed as one request, so very large files are limited by the request size. Split files over a few megabytes.
  • CSV parsing follows the standard quote rules but does not support every dialect; unusual quoting may need a spreadsheet or a script.
  • JSON to CSV expects an array of objects with the same keys. It does not rename or reorder columns.
  • Accent removal follows Unicode NFD, so some scripts with different diacritic systems are not fully covered.

Text & Writing Tools

Tool What does it do? Action
📊 Word Counter Count characters, words, and lines in real-time. Count →
Aa Case Converter Convert text between UPPERCASE, lowercase, and Title Case. Convert →
↔ Text Transformer Clean text and convert between CSV and JSON. Current Page
{} JSON Formatter Prettify, minify, and validate your JSON code. Format →
📸 IG Line Breaker Add invisible spaces to your Instagram captions and bios. Fix Bio →

Frequently asked questions

No. The text is processed for the request and returned on the page. It is not written to a database or kept after you leave the page.

Spacing and clean-up first, then case, then CSV or JSON conversion. That keeps the conversion working on tidy input and avoids changing JSON keys with a case switch.

Any single character, such as a comma, semicolon, pipe or tab. Set the input separator to match the file and the output separator to match the destination system.

It covers the common accented Latin characters. Other writing systems with different diacritic rules may not be fully decomposed, so check the output before using it.

The input must be valid JSON and an array of objects. A single object, a syntax error or an array of plain values cannot be written as a table with a header row.

Very large inputs are limited by the request size of the web server. For files over a few megabytes, split the content and process it in parts.