- Home
-
Text Tools
-
Scanf Text Parser
Scanf Text Parser
Parse structured text back into data using scanf templates. Convert logs or formatted text into CSV or JSON.
Use %s to capture text, %d for numbers, %f for decimals.
Instant Parse
Extract data from thousands of lines in milliseconds directly in your browser.
100% Private
No data upload required. Your text is processed locally on your device.
JSON & CSV
Export your extracted data to structured JSON or standard CSV formats.
Try These Examples
Parse Log Lines
Extract level, message, and time from logs.
Extract Data from Sentences
Convert readable text back into structured JSON.
Parse Product Info
Extract ID, name, and price.
URL Path Parser
Extract segments from URL paths.
How to Use Scanf Text Parser
The Scanf Text Parser is a powerful tool to extract structured data from formatted text files. By defining a simple template using %s and %d placeholders, you can instantly convert logs, reports, or lists into CSV or JSON.
Supported Placeholders
%s: Captures any text until the next character in your pattern matches.%d: Captures whole numbers (Integers).%f: Captures decimal numbers (Floats).
Example Usage
Input:
User: Alice (ID: 101)
Pattern:
User: %s (ID: %d)
Result (JSON):
["Alice", "101"]