Ready, runs in your browser
0 chars · 0 words
bytes leaving your device
0
steps to a finished array
2
no signup, no run limit
Free

Tilde to JSON array

What the tilde to JSON array converter does

Paste a line delimited with the tilde character, '~', and this app splits it on every tilde, trims each value, and returns a formatted JSON array. Same category of source as the caret converter: older, fixed-format exports that picked a character unlikely to appear inside ordinary field values.

It's local. The split runs in your browser, not on a server, so nothing you paste is uploaded and there's no limit on how many lines you convert.

Where the format comes from

Why older exports settled on the tilde specifically

Some legacy flat-file and EDI-adjacent formats needed a field separator that wouldn't turn up inside a name, an amount or a code, the way a comma or a space so often does. The tilde was one option chosen for that reason: rare enough in ordinary business text to work as a safe, deliberate delimiter.

That choice still shows up in older systems, integrations and archived exports built on that assumption, even though modern formats have mostly moved on to comma-separated files or JSON.

Workflow

How to convert a tilde-delimited line to JSON in three steps

Nothing to configure, no format to declare first.

Step 1
Paste your tilde-delimited line into the input field.
Step 2
Press Convert. The split and trim happen instantly, locally.
Step 3
Copy the JSON array from the output panel.

Why it matters

Where a tilde legitimately shows up outside a delimited export

The tilde is rarer than a comma or a space in ordinary prose, but not everywhere. On Unix or Linux, '~' is shorthand for a home directory, so a shell path like '~/Documents/report.txt' carries one. In casual writing, a tilde in front of a number, '~10 items', means approximately. In a package.json file, an npm version range like '~1.2.3' uses one to mean a compatible minor version.

Paste a line mixing genuinely delimited fields with any of these, a file path, an approximate figure, a version string, and the tilde inside gets split apart along with the real field boundaries.

The underlying tradeoff

Why rarity, not invisibility, makes a delimiter work

A tilde is a perfectly visible, ordinary keyboard character, unlike a zero-width space. What makes it useful as a delimiter isn't that it's hidden, it's that it's uncommon in the specific kind of data being exported, names, amounts, codes, dates. The moment the data includes a shell path, a version string or an approximation, that assumption stops holding.

It's the same tension the caret converter deals with, and every rare-character delimiter in this family: the choice works precisely because the data was expected to be ordinary business content, not technical text.

Straight answer

Is tilde delimiting still common today?

Not especially, most modern exports and APIs have moved on to comma-separated files, JSON or JSON lines. It survives mainly in older systems, legacy integrations and archived exports that were never rebuilt.

A fresh export from a current system would be unusual to use it. An older flat-file format or a legacy integration is worth checking for it.

Who it's for

Who uses a tilde to JSON array converter, and when

Developers and integration engineers working with an older system's flat-file export use it to get a single tilde-delimited row into JSON without building a dedicated parser for a legacy format. Anyone migrating data out of an older EDI-adjacent or mainframe-connected system uses it to inspect a sample row before writing a proper import.

It also comes up in data archaeology, opening an old export file to figure out its structure before deciding what to do with the data inside.

What comes out

An amount still comes back as a string, not a number

A tilde-delimited amount like '4200.00' converts to the string "4200.00", quotation marks and all, not the number 4200. JSON.stringify doesn't infer type here, so every value in the array is a string regardless of how numeric it looks.

That's a safer default for a legacy export specifically, since guessing at a number format risks getting decimal places or a locale-specific separator wrong. Convert the numeric-looking entries deliberately afterward, once you know the export's actual number formatting.

FAQ

Everything answered. Nothing to click open.

How do I convert a tilde-delimited line to a JSON array?

Paste the line above and press Convert. Each tilde-separated value becomes one array item.

Is it free?

Yes, no signup, no paste limit, no run limit. It runs entirely in your browser.

Is my text uploaded anywhere?

No, the split runs on your own device. Nothing is transmitted or stored.

Why do some exports use a tilde instead of a comma?

A tilde almost never appears in ordinary business data, names, amounts, dates, making it a safer delimiter choice for older export formats than a comma.

Will it split apart a shell path like ~/Documents?

Yes, a tilde used as home-directory shorthand is indistinguishable from a delimiter here and will be split there too.

Will it split apart an npm version range like ~1.2.3?

Yes, the tilde in a version range is treated as a delimiter here, which breaks the version string apart.

Does it work on modern exports too?

It splits any tilde-delimited text regardless of age, though tilde delimiting is now mostly found in older, legacy formats.

What happens to spaces around each value?

They're trimmed automatically, so any stray spacing around a value is removed.

What happens with two tildes in a row?

The empty item between them is dropped rather than kept as a blank entry.

Does it work on large pastes?

Yes, no length cap and no run limit.

Does it work on phones?

Yes, the layout stacks on narrow screens.

What's the difference between this and the caret converter?

Both target the same kind of legacy delimited export, chosen for rarity, but this splits on a tilde and the other on a caret. Use whichever your source file actually contains.

Will it split apart an approximate value like ~10 items?

Yes, that tilde is treated the same as any other, so casual text using it to mean approximately gets split apart if pasted.

Is there a batch mode or an API?

Not yet, paste, convert, copy for now.

How do I know if my export uses a tilde delimiter?

Open the raw file in a plain text editor and look for a tilde appearing at regular intervals between values.

Does it validate the resulting JSON?

The output is always syntactically valid JSON. It can't tell you whether the split matched your data's intent.

Can I use this on healthcare or insurance data exports?

Yes, tilde delimiting shows up in some legacy back-office formats in those industries. Paste a sample row to check the structure.

Is my data safe to paste if it's confidential?

Yes, nothing is transmitted anywhere. Processing happens locally in your browser.

Can I convert several rows at once?

The app treats the whole paste as one sequence, so multiple rows produce one combined array. Convert one row at a time for cleaner results.

What's the difference between this and the custom delimiter tool?

This one's fixed to a tilde. The custom delimiter tool accepts any separator you type, useful if your export uses a different rare character.

Does an amount like 4200.00 convert to a JSON number?

No, it stays a string, quotation marks included, exactly as pasted. Convert it separately afterward if your code needs an actual number.