Convert Fixed-Width Text to JSON in Command Line

Withdata DataFileConverter converts fixed-width text files to JSON locally — single file, batch, or merge multiple Fixed-Width Text files into one JSON. You define the column widths — or let the tool measure them. 100% local, secure, and cross-platform.

Fixed-width text is a plain text format in which every column has a fixed character width and no delimiter is used.

Download Free Trial


Why Choose Withdata Fixed-Width Text to JSON Converter?

🔒 100% Local & Secure

Fixed-Width Text files are read and converted on your own computer. Nothing is uploaded to any cloud server.

⚡ Fast Streaming Conversion

Large Fixed-Width Text files are processed in streaming mode with low memory usage — millions of rows within a minute.

📁 Batch & Merge

Batch convert many Fixed-Width Text files to JSON files, or merge multiple Fixed-Width Text files into one JSON.

🔄 Column Widths, No Delimiter

Define the width of every column (N columns need N-1 widths). No delimiter and no quoting are needed.

🖥 Windows, macOS, Linux

Native builds for Windows, macOS and Linux, with a step-by-step GUI wizard and a command line interface.

⏱ CLI & Scheduled Tasks

Save a conversion session and run it automatically from Windows Task Scheduler or crontab.

Full Feature Comparison

FeatureSupported details
Input sourceLocal fixed-width text, batch files, merged files
Output formatJSON object array, plain JSON array, or JSON Lines (one object per line)
Conversion modeSingle file · merge many Fixed-Width Text files into one JSON · batch (one to one)
Running modeGUI wizard · command line · scheduled tasks
Source optionsColumn widths (N-1 widths for N columns), header row, start row, encoding
Output optionsColumn mapping, encoding, date format, empty value handling
PlatformWindows, macOS, Linux (native, 64-bit)

All Fixed-Width Text to JSON Conversions You Need

Fixed-Width Text to JSON Notes

How to Convert Fixed-Width Text to JSON (4 Steps)

  1. Open Withdata DataFileConverter and select Fixed-Width Text as the input type and JSON as the output type.
  2. Load your Fixed-Width Text data — a single file, a folder / list of files for batch conversion, or several files to merge into one.
  3. Check the preview table, then adjust the source options and the output options.
  4. Click Convert — the JSON output is written in seconds. Save the session if you want to run it again from the command line.

Convert Fixed-Width Text to JSON in GUI

In GUI mode the conversion is a step-by-step wizard: choose the Fixed-Width Text source, choose the JSON destination, check the preview, and click Convert. See Withdata DataFileConverter.

FAQ

How fast is the Fixed-Width Text to JSON conversion?

Is my data safe during the conversion?

Does it work on Linux and macOS?

Can I convert Fixed-Width Text files in batch?

Can I merge multiple Fixed-Width Text files into one JSON?

Can I automate the conversion from the command line?

How do I define the columns of a fixed-width file?

Can the column widths be detected automatically?

Is there a header row or a delimiter?


Start Converting Fixed-Width Text to JSON Today

Download Withdata DataFileConverter for a free trial. Runs on Windows, macOS and Linux.

Download Now