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

Caret to JSON array

What the caret to JSON array converter does

Paste a line delimited with the caret character, '^', and this app splits it on every caret, trims each value, and returns a formatted JSON array. Same family of problem as the pipe and tilde converters: older, fixed-format exports that picked a rare character as their field separator.

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 caret specifically

Older mainframe extracts and some EDI-adjacent flat-file formats needed a delimiter that would essentially never appear inside a genuine field value, a name, an amount, a code. Commas, spaces and even pipes turned up too often for comfort, so some systems reached for something rarer, and the caret was one character that fit.

It was, and still is, a deliberate design choice, not an accident, meant to pick something unlikely to collide with anything a person would type into a normal field.

Workflow

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

Nothing to configure, no format to declare first.

Step 1
Paste your caret-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

What breaks when a caret shows up for reasons other than delimiting

The caret is rare in ordinary prose but not in technical text. Exponent notation writes '2^10' for two to the tenth power. Some programming languages use it for bitwise XOR. Terminal docs write '^C' for pressing Control and C together.

Paste a line that mixes genuinely delimited fields with any of these, a formula, a snippet, a keyboard instruction, and the caret inside gets split apart along with the real boundaries, the same mismatch every delimiter in this family runs into when the data contains the character it was chosen to avoid.

The underlying tradeoff

Why rarity was the whole point of the choice

Picking a delimiter is a bet: this character won't show up inside real field values often enough to matter. For most business data, names, amounts, dates, codes, the caret was and is a safe bet, which is why it survives in exports built decades ago and still running today.

The bet only fails when the data itself is technical rather than ordinary business content, math notation, code and terminal shorthand being the main exceptions.

Straight answer

Is caret delimiting still common today?

Less than it used to be, since most modern systems moved to comma-separated files, JSON or JSON lines. It persists mainly in older systems that haven't been rebuilt, some healthcare, insurance and financial back-office tools among them.

A fresh export from a modern system is unlikely to use it. A legacy integration or older flat-file format is a real possibility worth checking for.

Who it's for

Who uses a caret 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 caret-delimited row into JSON without building a full parser for a legacy format rarely touched otherwise. Anyone migrating data out of a mainframe-adjacent or EDI-style system uses it to inspect a sample row before writing a proper import script.

It also comes up in data archaeology, when someone finds an old export file and needs to understand its structure before deciding what to do with it.

What comes out

Every value comes back as a string, digits included

JSON.stringify never guesses at type here. A caret-delimited amount like '1500.00' converts to the string "1500.00", not the number 1500.00, quotation marks and all. That's true of every value in the array regardless of whether it looks numeric.

For most uses, feeding the array straight into code that already expects strings, this is exactly right. If a downstream system needs actual numbers, convert the numeric-looking entries after pasting the array out, since this tool doesn't infer type on its own.

FAQ

Everything answered. Nothing to click open.

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

Paste the line above and press Convert. Each caret-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 caret instead of a comma?

A caret almost never appears in ordinary business data, names, amounts, dates, unlike a comma, which made it a safer delimiter for older export formats.

Will it split apart a formula using a caret for exponents?

Yes, '2^10' is indistinguishable from a delimiter to this app and will be split there too.

Does it work on modern exports too?

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

What happens to spaces around each value?

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

What happens with two carets 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 tilde converter?

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

Can I use this on healthcare or insurance data exports?

Yes, caret delimiting shows up in some legacy healthcare and insurance back-office formats. Paste a sample row to check the structure.

Is there a batch mode or an API?

Not yet, paste, convert, copy for now.

Does it handle code that uses ^ for XOR?

No, a caret used as a bitwise XOR operator gets treated the same as a delimiter and split apart, which breaks the snippet.

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.

Will it split apart terminal shorthand like ^C?

Yes, that caret's treated the same as any other, so pasted documentation with keyboard shortcuts written this way gets split apart.

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

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

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 caret. The custom delimiter tool accepts any separator you type, useful if your export uses a different rare character.

Does a numeric-looking value come out as a number or a string?

As a string, quotation marks included, the same as every other value. Convert it separately afterward if your code needs an actual number.

What if my line starts or ends with a caret?

The empty item at that end is dropped, the same as an empty item between two carets in a row.