Base64 Encoder & Decoder
Encode text for an application, or read UTF-8 text stored in a Base64 value. Choose standard or URL-safe output, then copy or download the complete result.
Encode or decode a text payload
- Choose Decode for encoded data or Encode for ordinary text. Paste the source into the input. Each operation handles one complete payload, not a separate entry on every line.
- When encoding, choose Standard or URL-safe. Decoding recognizes either alphabet automatically and accepts omitted padding or correctly padded input.
- Run the conversion, then copy or download the complete result. If conversion fails, read the error and check the original source; the tool does not return a partial result.
Base64, text and URL-safe output
Base64 represents bytes with printable characters. It is reversible encoding, not encryption or compression. Anyone with the encoded value can recover the bytes without a key.
This tool converts text through UTF-8, so letters, accents and emoji can be represented together. Decoding rejects bytes that are not valid UTF-8 instead of guessing a character set or inserting replacement characters.
Standard output uses plus, slash and any required equals-sign padding. URL-safe output replaces plus and slash with hyphen and underscore, and omits padding. The decoder accepts either format but does not mix their special characters in one payload.
Spaces and newlines in ordinary text are data when encoding. Whitespace around or inside an encoded payload is ignored only for the stated ASCII whitespace characters. Decoded text retains its original spaces and line endings in the logical result and download.
Check the conversion with small examples
Hello encodes as SGVsbG8=. Decoding that value returns Hello. Encoding a single space produces IA==, so trimming text first would change the result.
The emoji 😀 becomes 8J+YgA== in standard Base64 and 8J-YgA in URL-safe Base64. Both represent the same four UTF-8 bytes.
Zg and Zg== both decode to f. A partly padded value such as Zg= is rejected. A payload can also pass Base64 validation but fail UTF-8 decoding when its bytes represent something other than UTF-8 text.
Text conversion has a defined scope
Encode up to 256 KiB of UTF-8 text, or decode a payload representing up to 256 KiB of text. A separate editor limit also applies. This tool does not process files, guess legacy encodings, unpack data URLs or inspect whole JSON Web Tokens. Paste only the encoded payload for the text you want to read.
Download preserves the result bytes without adding a newline or byte-order mark; an existing leading mark remains data. Clipboard software can normalize line endings, and some control characters are not visible in the preview. Use the UTF-8 download when exact text bytes matter.
Calculated in your browser
Conversion runs in your browser without tool-added uploads or saved input history. Copy writes the current result to your clipboard only when requested, and Download creates a local text file. Normal site services and consent settings remain separate.
Base64 text questions
Sources
Related tools
JSON to YAML
Convert JSON to YAML locally while preserving number text and quoted strings; copy or download the complete result.
Open tool — JSON to YAMLYAML to JSON
Convert one YAML document locally to JSON with exact number text and bounded aliases, then copy or download the complete result.
Open tool — YAML to JSONHTML to Markdown
Convert pasted or local HTML into Markdown, review conversion notes, and copy or download the result.
Open tool — HTML to MarkdownJavaScript Regex Tester
Test a JavaScript pattern locally and inspect matches, captures, and UTF-16 positions.
Open tool — JavaScript Regex TesterMarkdown to HTML
Convert a Markdown draft to an HTML fragment, inspect the source and inert preview, then copy or download it.
Open tool — Markdown to HTMLText Sorter
Sort lines alphabetically by a chosen language or by Unicode code point, keeping duplicates, blank rows and complete line contents.
Open tool — Text SorterRemove Duplicate Lines
Keep the first copy of each exact text line, preserving order, significant spaces and blank rows, then copy or download the result.
Open tool — Remove Duplicate LinesText Diff Checker
Compare two drafts locally, with exact whole-line changes, visible whitespace rules and clear final-newline handling.
Open tool — Text Diff CheckerCase Converter
Convert text to uppercase, lowercase, capitalized words or sentence case with explicit letter rules.
Open tool — Case ConverterHTML Entity Encoder/Decoder
Encode or decode literal HTML references with explicit context, Unicode options and LF output, without parsing or rendering markup.
Open tool — HTML Entity Encoder/DecoderMarkdown Table Generator
Edit a small literal-text table, set alignment and copy GFM Markdown or import tab-separated text.
Open tool — Markdown Table GeneratorQuery String Parser & Builder
Edit ordered URL parameters, retain repeated names and copy a normalized query or HTTP(S) URL.
Open tool — Query String Parser & BuilderURL Encoder & Decoder
Convert a UTF-8 URL component or form value with explicit space and plus rules, then copy or download the result.
Open tool — URL Encoder & DecoderXML Formatter
Check namespace-aware XML 1.0, format or compact locally, and copy or download UTF-8 output.
Open tool — XML FormatterJSON Formatter & Validator
Check JSON syntax, format or minify locally, and copy or download output while preserving original data tokens.
Open tool — JSON Formatter & ValidatorSMS Character Counter & Segment Calculator
See how your message is encoded, where its segments end and what it may cost. Your text stays in your browser.
Open tool — SMS Character Counter & Segment CalculatorSocial Media Character Counter
Check platform-specific limits and split posts without losing text.
Open tool — Social Media Character CounterCharacter Counter
Count characters, words, sentences and paragraphs. Check word density, reading time and UTF-8 size, all in your browser.
Open tool — Character CounterText Size Calculator
Compare text encodings and payload sizes in your browser.
Open tool — Text Size CalculatorPDF Text Cleaner
Fix line breaks and spacing in text copied from a PDF. Preserve your original and review ambiguous hyphens before copying the cleaned text.
Open tool — PDF Text CleanerFancy Text Converter
Convert supported fancy Unicode letters to normal text locally. Keep case, accents, emoji and your original text.
Open tool — Fancy Text ConverterGarbled Text Fixer
Fix garbled text and repair broken accents with a browser-based mojibake fixer. Review each possible UTF-8 reversal before applying it.
Open tool — Garbled Text FixerGmail Clipping Checker
Measure email HTML bytes in UTF-8, compare them with an advisory 102,000-byte Gmail reference, and inspect size contributors locally.
Open tool — Gmail Clipping Checker