consolelog.tools logo

The same tools, in your terminal.

Format JSON, hash strings, encode Base64, decode JWTs, convert YAML — all from a single pipe-friendly CLI. No signup, no telemetry, just stdout.

$npx consolelog-tools json-format file.json
Zero-install via npxFull stdin/stdoutSingle bundled binary

Install

Run once with npx

$npx consolelog-tools <command>

Or install globally for a shorter consolelog binary

$npm i -g consolelog-tools
$pnpm add -g consolelog-tools
$bun add -g consolelog-tools

Requires Node.js ≥ 18. The package bundles every dependency, so installs are fast and the dependency tree stays out of your node_modules.

Pipelines

Every command reads from a file, an inline string, or stdin — and writes to stdout. So they all compose with each other and with anything else in your shell.

Hash a generated UUID

$consolelog uuid | consolelog hash --algo sha256

Generate a UUID, then SHA-256 hash it in one shell pipeline.

Pretty-print a curl response

$curl -s https://api.example.com/users | consolelog json-format

No more grepping minified JSON — pipe straight from curl.

YAML → minified JSON

$consolelog yaml-to-json config.yaml | consolelog json-minify > config.min.json

Convert + minify in a single line, write to disk.

All commands

16 commands across 5 categories. Run any one with --help for its full options.

JSON(2)

consolelog json-format

Pretty-print JSON from a file, string, or stdin

Web version →
$consolelog json-format messy.json
$curl -s api.example.com/users | consolelog json-format

Format a curl response inline

$consolelog json-format '{"a":1}' --indent 4 --sort

consolelog json-minify

Strip whitespace from JSON

Web version →
$consolelog json-minify config.json > config.min.json

Encoding(6)

consolelog base64-encode

Encode text as Base64

Web version →
$consolelog base64-encode "hello world"
$cat avatar.png | consolelog base64-encode

Encode binary file contents

consolelog base64-decode

Decode Base64 to text

Web version →
$consolelog base64-decode "aGVsbG8gd29ybGQ="

consolelog url-encode

Percent-encode a URL or arbitrary string

Web version →
$consolelog url-encode "hello world & cats=dogs"

consolelog url-decode

Percent-decode a URL or string

Web version →
$consolelog url-decode "hello%20world"

consolelog html-encode

Encode HTML entities (e.g. < to &lt;)

Web version →
$consolelog html-encode "<div>tags</div>"

consolelog html-decode

Decode HTML entities back to characters

Web version →
$consolelog html-decode "&lt;div&gt;"

Crypto(2)

consolelog uuid

Generate one or many v4 UUIDs

Web version →
$consolelog uuid

One UUID

$consolelog uuid -n 10

Ten UUIDs, one per line

consolelog hash

Hash text with MD5, SHA-1, SHA-256, or SHA-512

Web version →
$consolelog hash "secret data" --algo sha256
$consolelog hash file.txt --algo md5

Hash a file's contents

Conversion(3)

consolelog yaml-to-json

Convert YAML to JSON

Web version →
$consolelog yaml-to-json docker-compose.yml
$consolelog yaml-to-json config.yaml | consolelog json-minify

Pipe to minifier

consolelog json-to-yaml

Convert JSON to YAML

Web version →
$consolelog json-to-yaml package.json

consolelog jwt-decode

Decode a JWT and print header + payload as JSON

Web version →
$consolelog jwt-decode "eyJhbGciOi..."

Text(3)

consolelog case

Convert text between case styles (camel, snake, kebab, etc.)

Web version →
$consolelog case "helloWorldFoo" --to snake

→ hello_world_foo

$consolelog case "helloWorldFoo" --to kebab

→ hello-world-foo

$consolelog case "helloWorldFoo" --to constant

→ HELLO_WORLD_FOO

consolelog slug

Convert text to a URL-safe slug

Web version →
$consolelog slug "Hello, World! 2026"

→ hello-world-2026

consolelog lorem

Generate Lorem Ipsum placeholder text

Web version →
$consolelog lorem --type paragraphs -n 3
$consolelog lorem --type words -n 50

I/O contract

Every command resolves its input in this order, then writes the result to stdout:

  1. 1A file path, if the first positional arg points at an existing file.
  2. 2An inline string, if the first arg isn't a file.
  3. 3Whatever's on stdin, if data was piped in.

Errors go to stderr with a non-zero exit code, so shell pipelines surface failures correctly.

Want a tool that's not here?

The CLI ships a curated subset; the full 300+ tool catalog lives on the web — searchable with ⌘ K.