Checkbox Extractor
What is Checkbox Extractor?
Checkbox Extractor is a tool that helps you extract checkboxes from HTML input elements and convert them into various formats. It's useful for developers and content managers who need to work with HTML forms and extract checkbox data.
How It Works
- Paste your HTML code containing checkbox elements into the input area
- The tool automatically extracts all checkboxes from input elements
- View two different output formats:
- Extracted Checkboxes: Choose from Plain Text, Array, Associative Array, or JSON formats
- Extracted Values: Get only the value attributes for quick reference
- Copy any output format with dedicated copy buttons
- Use the formatted output in your development projects
Output Formats
- Extracted Checkboxes: Formatted output based on selected format (Plain Text, Array, Associative Array, or JSON)
- Extracted Values: Only the checkbox values, one per line
Example Input
<form> <label><input type="checkbox" name="fruits" value="apple"> Apple</label> <label><input type="checkbox" name="fruits" value="banana" checked> Banana</label> <label><input type="checkbox" name="fruits" value="orange"> Orange</label> </form>
Example Outputs
Extracted Checkboxes - Plain Text Format
Apple Banana Orange
Extracted Checkboxes - Array Format
"Apple" "Banana" "Orange"
Each checkbox label in quoted format, one per line for better readability.
Extracted Checkboxes - Associative Array Format
[ "apple => Apple", "banana => Banana", "orange => Orange" ]
Array format with proper indentation for better readability.
Extracted Checkboxes - JSON Format
[ { "value": "apple", "text": "Apple", "name": "fruits", "checked": false }, { "value": "banana", "text": "Banana", "name": "fruits", "checked": true }, { "value": "orange", "text": "Orange", "name": "fruits", "checked": false } ]
Extracted Values
apple banana orange
Only the value attributes from each checkbox element.