Format Values (Free Online Tool)
Reformat individual values with case changes, trimming, coercion, and slugification
Paste your JSON → Get results instantly (no signup)
⚡ Instant resultsNo signupRuns in your browser
Try examples:
→ Uppercase all string values in this data.
Output✓
Output✓
1{2 "name": "ALICE",3 "city": "NEW YORK",4 "age": 305}Love the result?
Use this exact pipeline in your app, backend, or LLM workflow.
No setup needed. Works with curl, Node, Python.
Uses example data. For edited input, copy from the playground.
Works with:
- API responses
- Nested JSON
- Arrays & objects
Example: input → output
Input / OutputInputOutput
Input
{ "name": "alice", "city": "new york", "age": 30}Output
{ "name": "ALICE", "city": "NEW YORK", "age": 30}Related tools
- CSV to JSONParse CSV text into a JSON array of row objects for further cleanup or reshaping
- JSON to CSVConvert JSON array row data into final CSV text output
- Map ValuesRemap existing values through a lookup table such as enums, codes, or category names
- Compute FieldCreate derived values or fields from formulas, expressions, and simple conditionals
Advanced usage (optional)
Format Values
v1.0.0Convert
objectarraydestructive
Description
Format Values
Transform value formats across your JSON data — case changes, type coercion, whitespace trimming, URL slugification, date normalization, and hashing.
Formats
Case Transforms
- uppercase: Convert strings to UPPER CASE
- lowercase: Convert strings to lower case
- capitalize: Capitalize the first letter of each word
Whitespace
- trim: Remove leading and trailing whitespace
Type Coercion
- toString: Convert numbers and booleans to their string representation
- toNumber: Parse numeric strings into numbers (
"30"→30) - toBoolean: Parse boolean strings (
"true"→true,"false"→false)
Special Formats
- slugify: Convert text to URL-safe slugs (
"Hello World!"→"hello-world") - date-iso: Parse various date formats to ISO 8601 (
"Jan 15, 2024"→"2024-01-15T00:00:00.000Z") - hash: Replace values with FNV-1a hash strings (8-character hex)
Configuration
| Field | Type | Default | Description |
|---|---|---|---|
| Target Paths | path-picker | [] | Select paths whose values should be formatted (empty = all values) |
| Format | enum | trim | uppercase, lowercase, capitalize, trim, toString, toNumber, toBoolean, slugify, date-iso, or hash |
Use Cases
Data Normalization
- Consistent casing: Uppercase all country codes, lowercase all email addresses
- Type fixing: Convert string numbers from CSV imports to actual numbers
- Date standardization: Normalize mixed date formats to ISO 8601
Content Processing
- URL slugs: Generate URL-friendly slugs from article titles
- Display formatting: Capitalize names for display
- Whitespace cleanup: Trim user-submitted form values
Privacy & Security
- Hash emails: Replace email addresses with hashes for anonymized datasets
- Hash identifiers: Obfuscate personal identifiers while maintaining uniqueness
Configuration
| Name | Type | Default | Description |
|---|---|---|---|
| Target Paths | path-picker | [] | Select paths whose values should be formatted (empty = all values) |
| Format | enum | trim | uppercase/lowercase/capitalize: case transforms. trim: whitespace. toString/toNumber/toBoolean: coercion. slugify: URL slug. date-iso: parse to ISO 8601. hash: FNV-1a hash. uppercase lowercase capitalize trim toString toNumber toBoolean slugify date-iso hash |
Examples
AI Prompt
Uppercase all string values in this data.Output✓
Output✓
1{2 "name": "ALICE",3 "city": "NEW YORK",4 "age": 305}Config
Target Paths
all
Format
uppercase
API Usage
POST /api/v1/utilities/convert.format-values
Example:
curl -X POST https://your-domain.com/api/v1/utilities/convert.format-values \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"inputs":{"primary":{"name":"alice","city":"new york","age":30}},"config":{"targetPaths":[],"format":"uppercase"}}'Response
1{2 "name": "ALICE",3 "city": "NEW YORK",4 "age": 305}