Base64 Encoder / Decoder
Processed in your browserEncode or decode text to Base64 with optional URL-safe output—all in your browser.
What this tool does
Encode or decode text to Base64 with optional URL-safe output—all in your browser.
Features
- Encode
- Decode
- URL-safe mode
How to encode or decode Base64
- Paste text to encode or Base64 to decode.
- Toggle URL-safe mode if needed for JWT-style strings.
- Click Encode or Decode and copy the result.
Example: encode text
- Input
- Hello, Toolstik!
- Result
- SGVsbG8sIFRvb2xzdGlrIQ==
Common uses
- Decode Base64 strings found in API responses or config files.
- Encode credentials for HTTP Basic auth headers.
- Inspect JWT segments with URL-safe mode.
Supported formats
- UTF-8 text
- Standard and URL-safe Base64
Limits
- Large strings may slow very old browsers
Limitations
- Binary file encoding is text-only in this tool.
Privacy
Encoding happens entirely in your browser.
Frequently asked questions
Related guides
- Common JSON Errors and How to Fix Them
Fix common JSON errors fast: trailing commas, single quotes, unquoted keys, comments, BOMs, NaN, and raw line breaks, with before-and-after examples.
- How to Decode a JWT Safely
How to decode a JWT safely: inspect the header and payload locally in your browser, read exp and iat, and avoid the mistake of trusting unverified claims.
- JSON Pretty Print vs Minify — What's the Difference?
JSON pretty print vs minify: what each does, how much size you actually save, how gzip changes the math, and when to use each format in your workflow.
- JWT Header vs Payload vs Signature Explained
JWT header vs payload vs signature explained: what each segment contains, how Base64URL encoding and signing work, and why only the signature makes a token trustworthy.
You may also need
JWT Decoder
Decode JWT header and payload locally. Inspect claims—signature is not verified.
URL Encoder / Decoder
Encode or decode URLs and query components with encodeURI or encodeURIComponent.
JSON Formatter & Validator
Format, validate, and minify JSON. Tree view with syntax error highlighting.
Regex Tester
Test JavaScript regular expressions with live match highlighting, capture groups, and flags.
Browse the free developer toolkit for every related tool and guide.