从 Base64 解码 → 格式化 JSON

按固定顺序执行以下操作:从 Base64 解码 → 格式化 JSON。 输入只需提供一次,结果可直接复制或下载。

输入: 文本结果: 文本

文本输入

运行后查看结果

案例

A support ticket with a zero-prefixed identifier

输入

eyJ0aWNrZXQiOiIwMDEyMyIsInByaW9yaXR5IjoiaGlnaCJ9

Expected answer

JSON
{
    "ticket": "00123",
    "priority": "high"
}
An observatory reading with a negative temperature

输入

eyJzdGF0aW9uIjoiZGVtby1vYnNlcnZhdG9yeSIsInRlbXBlcmF0dXJlQyI6LTEyLjUsIm9wZW4iOmZhbHNlfQ==

Expected answer

JSON
{
    "station": "demo-observatory",
    "temperatureC": -12.5,
    "open": false
}
A café menu with Unicode and a decimal price

输入

eyJpdGVtIjoiY2Fmw6kiLCJwcmljZSI6My41LCJjdXJyZW5jeSI6IkVVUiJ9

Expected answer

JSON
{
    "item": "café",
    "price": 3.5,
    "currency": "EUR"
}
A safe webhook retry policy

输入

eyJ0aW1lb3V0TXMiOjUwMDAsInJldHJpZXMiOjIsImVuYWJsZWQiOnRydWV9

Expected answer

JSON
{
    "timeoutMs": 5000,
    "retries": 2,
    "enabled": true
}
An image manifest with a null caption

输入

eyJ3aWR0aCI6NjQwLCJoZWlnaHQiOjQ4MCwiY2FwdGlvbiI6bnVsbH0=

Expected answer

JSON
{
    "width": 640,
    "height": 480,
    "caption": null
}
A release note with an embedded newline

输入

eyJ2ZXJzaW9uIjoiMi4xLjAiLCJub3RlcyI6IkZpeGVkIHBhcnNlclxuQWRkZWQgdGVzdHMifQ==

Expected answer

JSON
{
    "version": "2.1.0",
    "notes": "Fixed parser\nAdded tests"
}
An empty search result

输入

eyJyZXN1bHRzIjpbXSwidG90YWwiOjB9

Expected answer

JSON
{
    "results": [],
    "total": 0
}

结果的生成方式

  1. 从 Base64 解码
  2. 格式化 JSON

约定与限制

Formatting does not validate a schema or verify authenticity. Very large JSON documents require enough browser memory. Do not use formatted output for signatures that depend on exact original bytes.

相关工具

代码整理