Loading DynamoDB Query Formatter...
Please wait a moment

DynamoDB Query Formatter Online — Format & Beautify DynamoDB Params

Paste your AWS DynamoDB params above and get clean, properly indented JSON output instantly. Handles Scan, Query, PutItem, UpdateItem, and DeleteItem params — all processed in your browser.

How to Format DynamoDB Params — Step-by-Step

Step 1

Input Your DynamoDB Params

Got a compact DynamoDB params object from your AWS SDK code, logs, or documentation? Paste it in — the formatter handles plain JSON, variable assignments (const params = ...), and SDK command wrappers like new ScanCommand(...).

Paste directly: Copy the params JSON and paste it in — formatting happens instantly
Upload a file: Click "Upload" to select a .json or .js file
Load a sample: Click "Sample" to see a compact Scan params formatted

Example: Compact DynamoDB Scan Params

A typical one-liner you might copy from your codebase or logs:

// Compact params from your code
{  "TableName": "Orders", "FilterExpression": "#status = :s AND #total > :min", "ExpressionAttributeNames": { "#status": "orderStatus", "#total": "totalAmount" }, "ExpressionAttributeValues": { ":s": { "S": "SHIPPED" }, ":min": { "N": "50" } } }
Step 2

Automatic Formatting & Validation

The formatter parses your JSON and outputs it with proper 2-space indentation, making FilterExpression, ExpressionAttributeNames, and typed attribute values easy to read. Invalid JSON is flagged with clear error messages so you can fix syntax issues quickly.

Formatted Output

The same params from Step 1, now with clean 2-space indentation:

{
  "TableName": "Orders",
  "FilterExpression": "#status = :s AND #total > :min",
  "ExpressionAttributeNames": {
    "#status": "orderStatus",
    "#total": "totalAmount"
  },
  "ExpressionAttributeValues": {
    ":s": {
      "S": "SHIPPED"
    },
    ":min": {
      "N": "50"
    }
  }
}
Step 3

Minify for Configuration

Need compact JSON for environment variables, AWS CLI commands, or CI/CD pipeline config files? Click "Minify" to compress the formatted output into a single line with all whitespace removed. This is especially useful when storing DynamoDB params in .env files or passing them as string arguments.

Minified Output

The same params compressed to a single line:

{  "TableName":"Orders","FilterExpression":"#status = :s AND #total > :min","ExpressionAttributeNames":{"#status":"orderStatus","#total":"totalAmount"},"ExpressionAttributeValues":{":s":{"S":"SHIPPED"},":min":{"N":"50"}}}
Step 4

Copy or Download

Copy to clipboard: Paste into your code, documentation, or AWS Console
Download as file: Save the formatted or minified JSON as a .json file for version control or sharing
Convert it: Convert to SQL, MongoDB, or try the JSON Formatter for general JSON formatting

Frequently Asked Questions — DynamoDB Query Formatter

How do I format DynamoDB params online?

Paste your DynamoDB params JSON into the input editor and the formatter runs instantly — proper 2-space indentation, syntax highlighting, and error detection. It handles plain JSON, const params = { ... } variable assignments, and new ScanCommand(...) wrappers. You can also upload a .json or .js file, or click "Sample" to load an example and see the formatter in action. No login or account required.

Does it handle variable assignments and SDK commands?

Yes. The formatter automatically strips JavaScript variable declarations like const params = { ... } and AWS SDK v3 command wrappers like new ScanCommand({ ... }) or new QueryCommand({ ... }) before formatting. This means you can paste code directly from your editor, terminal logs, or NoSQL Workbench without manually extracting the JSON object first.

Can I minify DynamoDB params?

Yes — click "Minify" to compress the params into a single line with all whitespace removed. This is useful for storing params in environment variables, CI/CD pipeline config files, AWS CLI --item arguments, or anywhere you need compact JSON. You can toggle between formatted and minified views at any time.

What is the difference between this and a regular JSON formatter?

This tool is designed specifically for DynamoDB params — it strips JavaScript variable declarations and SDK command wrappers before formatting, which a generic JSON formatter cannot do. It also understands DynamoDB-specific structures like ExpressionAttributeNames, ExpressionAttributeValues with typed attributes ({"S": ...}, {"N": ...}, {"BOOL": ...}), and FilterExpression syntax. For general JSON formatting, use the JSON Formatter. For MongoDB queries, use the MongoDB Query Formatter.

Does it support all DynamoDB operation types?

Yes. The formatter works with params for all DynamoDB operations including Scan, Query, GetItem, PutItem, UpdateItem, DeleteItem, and BatchWriteItem. Any valid JSON object used as DynamoDB API params can be formatted and beautified.

Is my data safe?

Yes. All formatting and minification happens entirely in your browser using client-side JavaScript. Your DynamoDB params never leave your machine — nothing is sent to any server. This makes it safe to use with production data, API keys in ExpressionAttributeValues, or any sensitive information in your params.

Is this formatter free?

Completely free with no limits on usage. No account or registration required. Format and minify as many DynamoDB params as you need. Also check out: SQL to DynamoDB, DynamoDB to SQL, DynamoDB to MongoDB, and MongoDB Query Formatter.