The Code Codex
Theme

Base64 & URL Encode

Encode and decode text as Base64, Base64URL or URL (percent-encoding), with full Unicode support.

The link keeps what is on screen.
Parameters
Operation
Format
Output
How is it calculated?See the code ↗

Processed in your browser; nothing is sent.

⌨️ Use from the terminal (JSON)

This tool also runs outside the site: the cli.js script uses the same logic as this page and returns the result as JSON. Parameters are the same as this page's URL — copy the command below with the values on screen.

Deno
deno run -q "https://thecodecodex.com/cli.js?tool=base64"
Node.js / Bun
curl -s https://thecodecodex.com/cli.js | node --input-type=module - base64 text=…
ParameterDescriptionDefault
texttexto—
opencode | decodeencode
fmtbase64 | base64url | urlbase64

Requires Deno, Node.js or Bun. With Deno the script runs with no permissions: it cannot read files or access the network. Central Bank indicators are from the day the site was published.

More in Development