Scanf Text Parser

Parse structured text back into data using scanf templates. Convert logs or formatted text into CSV or JSON.

0 Lines | 0 Chars

Use %s to capture text, %d for numbers, %f for decimals.

0 Lines

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

User ID Parser

Extract usernames and IDs from user logs

Try It

Product Prices

Parse product names and prices from inventory

Try It

Log Entry Parser

Extract IP, timestamp, and status from server logs

Try It

Coordinate Data

Extract labeled coordinates from measurement data

Try It

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"]