Hongmu Notes

📌 Merge strings by column

Merge the contents of multiple rows in the same column together according to the separator, and you can also swap rows and columns.

Merge strings by column

Instructions for use

  • After filling in the separators, click "Start Merging", and the results will appear in the output box below.
  • Checking "Merge into array" will output a JSON two-dimensional array.
  • Input rows with fewer columns than other rows will be ignored. Please unify the number of segments before processing.

String split by column

"Split by column" and "Merge by column" are two sides of the same set of operations: first split the rows into fields, and then decide whether to output by columns or rows.

📌 Where did the results go after the split?

The results appear in the output box below: when the array is not checked, the text is output in columns, and when checked, the JSON array is output in columns; the split itself will not change the original content above. If you need to change the original text, please return to the input box to edit.

🧭 Common uses

Convert records from "multiple fields in one row" to "multiple values in one column" to facilitate column-by-column checking, exchange table data between rows and columns, organize lists spliced with delimiters, separate multiple labels in each row and then aggregate them by label. You can use this set of rules to complete it. Checking the array output can also directly obtain a two-dimensional structure that can be pasted into the code.

🔒 Dealing with location and privacy

Splitting and merging are done locally in the browser. The input and results are not uploaded to the server or written to local storage. They are cleared when the page is refreshed. Exporting TXT files is generated locally by the browser and does not go through the server. For lists involving internal data, please judge whether it is suitable to export to local files.

All keywords and tutorials 12

❓ FAQ

Can it be split into a fixed number of columns?
The number of columns is determined by the number of segments cut by the delimiter, without padding or truncation.
Will empty fields be lost?
Empty segments between two consecutive delimiters are retained as an empty string.
The purpose of splitting by columns
Check whether the number of fields in each row is consistent, convert multiple fields in a row into a column list, and locate rows with missing fields.