Base64 Encoder & Decoder

Encode text to Base64 or decode Base64 strings instantly in your browser. Supports standard and URL-safe Base64 — nothing is uploaded.

No data leaves your browser
Plain Text

How to use the Base64 Encoder

  1. Paste text to encode, or Base64 to decode.
  2. Toggle URL-safe Base64 if you need it.
  3. Copy the result.

Why use this Base64 Encoder

  • Encode and decode Base64 with full Unicode support
  • URL-safe Base64 (base64url) for JWTs and URLs
  • Instant, no upload

Frequently Asked Questions

What is Base64?

Base64 is a binary-to-text encoding scheme that represents binary data using 64 printable ASCII characters (A-Z, a-z, 0-9, +, /). It is widely used to transmit data over text-based protocols like email or HTTP.

What is URL-safe Base64?

URL-safe Base64 replaces + with - and / with _ to produce a string that is safe in URLs and filenames without percent-encoding. It is used in JWTs, OAuth tokens, and web APIs.

Is this Base64 tool free?

Yes, completely free. No signup or account required.

Is my data safe?

All encoding and decoding runs in your browser. Your data is never sent to a server.

How do I encode text to Base64?

Select Encode mode, paste or type your text, and the Base64 output appears instantly. Check URL-safe for output that is safe to use in URLs.

How do I decode a Base64 string?

Switch to Decode mode, paste your Base64 string, and the original text appears immediately. The tool handles both standard and URL-safe Base64.

What characters does Base64 use?

Standard Base64 uses A-Z, a-z, 0-9, + and / (64 characters) plus = for padding. URL-safe Base64 replaces + with - and / with _ to avoid conflicts in URLs.

How much larger is Base64 than the original data?

Base64 encoding increases size by approximately 33%. Every 3 bytes of binary data become 4 Base64 characters. Padding (=) is added to make the output a multiple of 4 characters.

What is Base64 used for in web development?

Embedding images or fonts in HTML/CSS as data URIs, encoding binary attachments in JSON APIs, storing binary data in cookies, and encoding credentials in HTTP Basic Auth headers (username:password).

What is the difference between Base64 and Base64url?

Base64 uses + and / which have special meaning in URLs. Base64url (URL-safe Base64) replaces these with - and _ so the encoded string can be used in a URL path or query parameter without escaping.

More Developer Tools

JSON ToolsFormat, validate, minify & compare JSON JSON FormatterPretty-print and beautify JSON CSV Viewer & EditorView, edit and convert CSV files YAML ConverterConvert YAML to JSON and back Regex TesterTest regular expressions live Text DiffCompare two texts side by side JWT ToolDecode, encode, compare and verify JWTs JWT DecoderInspect JWT header and payload XML FormatterFormat, validate and convert XML URL EncoderEncode, decode and parse URLs Base64Encode and decode Base64 strings Hash GeneratorSHA-256, MD5, HMAC and CRC32 SHA-256Generate SHA-256 checksums MD5 GeneratorGenerate MD5 hash values Text ToolsCase convert, count and transform text Number ConverterBinary, hex and octal converter Token CalculatorEstimate LLM token counts from text PDF EditorEdit text, sign and annotate PDFs Schema GeneratorJSON to TypeScript, Go, Rust, Python IndexNowSubmit URLs to Bing, Yandex & more PII RedactorMask personal data & keys before AI Timestamp ConverterUnix epoch to date and back UUID GeneratorUUID v4/v7, ULID, Nano ID Password GeneratorSecure passwords & passphrases MCP Config BuilderConfigs for Claude, Cursor, VS Code AGENTS.md GeneratorCLAUDE.md, Cursor rules, Copilot AI Crawler Controlsrobots.txt for AI bots & llms.txt Cron ParserExplain crontab, next run times SQL FormatterBeautify & minify SQL queries cURL ConvertercURL to fetch, Python, Go, PHP Chat Export ConverterChatGPT/Claude export to Markdown Markdown PreviewLive GFM preview & to HTML Color & ContrastHEX/RGB/OKLCH, WCAG checker QR Code GeneratorURL, Wi-Fi, vCard; PNG & SVG Image EditorConvert, compress, resize & crop Tool Schema ConverterOpenAI ↔ Anthropic ↔ Gemini ↔ MCP JSONL ValidatorFine-tuning & batch files SSE Stream ParserReassemble LLM streaming responses Prompt Template & DiffFill {{vars}}, compare versions