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.

{
"name": "alice",
"city": "new york",
"age": 30
}
Output
1{
2 "name": "ALICE",
3 "city": "NEW YORK",
4 "age": 30
5}

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.

Read integration guide

Works with:

  • API responses
  • Nested JSON
  • Arrays & objects

Example: input → output

Input / Output
Input
{
"name": "alice",
"city": "new york",
"age": 30
}
Output
{
"name": "ALICE",
"city": "NEW YORK",
"age": 30
}

Related tools

Advanced usage (optional)

Format Values

v1.0.0
Convert
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

FieldTypeDefaultDescription
Target Pathspath-picker[]Select paths whose values should be formatted (empty = all values)
Formatenumtrimuppercase, 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

NameTypeDefaultDescription
Target Pathspath-picker[]Select paths whose values should be formatted (empty = all values)
Formatenumtrimuppercase/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.
{
"name": "alice",
"city": "new york",
"age": 30
}
Output
1{
2 "name": "ALICE",
3 "city": "NEW YORK",
4 "age": 30
5}
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": 30
5}