gptcleanuppro.com / custom-delimiter-to-json-array
Ready · local0w
Works with text copied from
ChatGPTClaudeGeminiGrokCopilotPerplexity
delimiter field, any value
1
bytes sent to a server
0
length or run limit
None

The tool

A precise custom delimiter to JSON array converter

This tool accepts any separator typed into the delimiter field, a comma, a double colon, a backslash, a string like ' -> ', and splits pasted text on exactly that separator, trims each value, and returns a formatted JSON array. It defaults to a comma when the field is left blank.

The conversion runs entirely in JavaScript in your browser. There is no request sent to a server, and no run limit, since nothing here costs anything to serve.

Why this exists

When none of the fixed delimiters fit

Every other converter in this family is fixed to one specific character, comma, tab, pipe, colon and the rest, because each matches a real, common export format. Real-world data does not always cooperate with those fixed choices. Some systems export something unusual: double colons, a pipe padded with spaces, an arrow built from dashes and a greater-than sign, or a control character represented as visible text.

This tool serves as the escape hatch for exactly that situation, and for the other common case: the data already contains one of the standard delimiters within its actual values, a comma inside an address, a pipe inside a note, requiring a rarer separator that the export was designed to use for that reason.

How it works

How to convert text with a custom delimiter to JSON in three steps

One additional field compared to the other converters, otherwise identical.

Step 1
Type the delimiter into the delimiter field, then paste the delimited text below it.
Step 2
Press Convert. The split and trim run instantly, client side, using exactly the delimiter entered.
Step 3
Copy the resulting JSON array from the output panel.

Why it matters

What breaks when the chosen delimiter still appears inside a value

Whatever delimiter is chosen, this tool still performs a plain split with no quoting or escaping logic, precisely like every other converter in this family. If the exact string entered as the delimiter also appears legitimately inside one of the values, it is split there as well, with no mechanism to mark a particular occurrence as content rather than a boundary.

The only genuine fix is selecting a delimiter that never appears in the data. If the source export used a rare, multi-character sequence specifically to avoid this problem, entering that exact sequence rather than a single character produces the same correct result.

Behind the field

Why the delimiter field accepts more than one character

A single character is not always sufficient for safety. Certain export formats deliberately use a short, unusual sequence such as '::' or '~|~' as their separator, precisely because a two- or three-character sequence is less likely to occur by accident than any single character alone. This field accepts any text entered, one character or several, and treats it as a literal string to split on rather than a pattern carrying special meaning.

This means characters that would ordinarily carry special meaning in a search pattern, a period, an asterisk, a question mark, are treated as plain, literal characters here rather than interpreted otherwise.

Straight answer

Can this escape a delimiter that appears inside a value?

No, not on its own. This tool has no concept of escaping or quoting, so it cannot distinguish a delimiter that is meant to separate two fields from the same character sequence appearing legitimately within one field's value.

The practical workaround is selecting a different delimiter, ideally one that genuinely does not appear anywhere in the actual data, and regenerating the source export with that separator where that is possible.

Who it's for

Who uses a custom delimiter to JSON array converter, and when

Developers working with a proprietary export format, one built by an internal tool or an older vendor system with its own separator convention, use it to get that data into JSON without writing a bespoke parser. Anyone whose data already contains commas, pipes or tabs within the actual values reaches for it once the fixed-delimiter tools have failed on that data.

It also functions as a general-purpose fallback: when the applicable converter isn't obvious, entering the exact character observed in the source text here produces the same result any of the dedicated tools would.

FAQ

Custom delimiter to JSON array, answered precisely

All answered in full, nothing to click open.

How do I convert text with a custom delimiter to a JSON array?

Type the delimiter into the delimiter field, paste the text below it, and press Convert. Each value split by that exact delimiter becomes one array item.

Is it free?

Yes. No signup, no length cap, no run limit, since the conversion runs on your own device.

Is my text uploaded anywhere?

No, the split runs entirely client side. Nothing is transmitted, stored or logged.

What is the default delimiter if I leave it unchanged?

A comma. Leaving the field as is makes this behave the same as the comma to JSON array converter.

Can I enter more than one character as the delimiter?

Yes, any text entered is used as a literal separator, so '::' or ' | ' is matched exactly as typed.

Does it support regular expression patterns as a delimiter?

No, whatever is entered is treated as a literal string, not a pattern. A period or asterisk in the delimiter is matched as that exact character, not interpreted as a wildcard.

What happens if my delimiter also appears inside a value?

It is split there as well. This converter cannot distinguish a structural occurrence of the delimiter from an incidental one inside a value.

What happens to whitespace around each value?

It's trimmed automatically after the split, regardless of which delimiter is chosen.

Is there a length limit on the input?

No. There's no cap and no run limit, only your device's own memory.

Does it work on phones?

Yes, the layout adapts to narrow screens.

How does this differ from fixed-delimiter tools like comma or pipe?

Those tools are locked to one specific character matching a common export format. This converter accepts any delimiter entered, useful when the data uses something else.

Can I use a tab character as the custom delimiter?

Yes, though the dedicated tab to JSON array converter handles that case directly when that is specifically what's needed.

Can I use a backslash as the delimiter?

Yes, entering a single backslash into the delimiter field splits a Windows-style path or any other backslash-delimited text.

Is there an API or batch mode?

Not currently. This is a single-paste, browser-based converter.

What happens with two consecutive delimiters?

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

Is the output guaranteed to be valid JSON?

Yes, it's constructed with JSON.stringify. It cannot confirm the chosen delimiter matched the data correctly, only that the result parses.

Can the delimiter inside a value be escaped to prevent splitting?

No, this converter has no escaping mechanism. The only reliable fix is selecting a delimiter that genuinely does not appear inside the values.

Is confidential data safe to paste here?

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

Can the delimiter be a word, matched case-sensitively?

Yes, whatever text is entered, letters included, is matched exactly as typed, so a word used as a separator is matched case-sensitively.

How should I choose a safe custom delimiter if I control the export?

Select a short, unusual sequence unlikely to appear in the real data, such as '::' or a tilde, and apply it consistently across the export.

Split on whatever delimiter the data actually uses.

Computed locally, no upload, no run limit.

Open the converter