Favorite places of your favorite city
Home
Add to preferred sources on Google

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.

Input

Result

Enter a payload and run the conversion.

Local conversion

The tool processes your text in this browser without uploading it or saving a tool history.

Copy and download happen only when requested. Other site services and consent settings remain separate.

Encode or decode a text payload

  1. 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.
  2. When encoding, choose Standard or URL-safe. Decoding recognizes either alphabet automatically and accepts omitted padding or correctly padded input.
  3. 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

No. Base64 changes the representation of bytes; it does not encrypt them. Treat an encoded secret with the same care as its original value.

Yes. Decode recognizes standard and URL-safe alphabets automatically, with correct padding or no padding. A mixture of their special characters is rejected.

Decoders can apply different policies. This one allows specified whitespace and omitted padding, but rejects malformed padding, mixed alphabets and noncanonical unused bits. It also requires the decoded bytes to be valid UTF-8 text.

Yes. Well-formed Unicode text is encoded as UTF-8. The interface language does not change the encoding or translate your text.

The tool does not remove them from decoded text or its download. An encoding input uses the current browser textarea value, which may already have normalized pasted newlines. Clipboard applications can also normalize line endings.

Sources

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 YAML

YAML 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 JSON

HTML to Markdown

Convert pasted or local HTML into Markdown, review conversion notes, and copy or download the result.

Open tool — HTML to Markdown

JavaScript Regex Tester

Test a JavaScript pattern locally and inspect matches, captures, and UTF-16 positions.

Open tool — JavaScript Regex Tester

Markdown 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 HTML

Text Sorter

Sort lines alphabetically by a chosen language or by Unicode code point, keeping duplicates, blank rows and complete line contents.

Open tool — Text Sorter

Remove 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 Lines

Text Diff Checker

Compare two drafts locally, with exact whole-line changes, visible whitespace rules and clear final-newline handling.

Open tool — Text Diff Checker

Case Converter

Convert text to uppercase, lowercase, capitalized words or sentence case with explicit letter rules.

Open tool — Case Converter

HTML 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/Decoder

Markdown Table Generator

Edit a small literal-text table, set alignment and copy GFM Markdown or import tab-separated text.

Open tool — Markdown Table Generator

Query String Parser & Builder

Edit ordered URL parameters, retain repeated names and copy a normalized query or HTTP(S) URL.

Open tool — Query String Parser & Builder

URL 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 & Decoder

XML Formatter

Check namespace-aware XML 1.0, format or compact locally, and copy or download UTF-8 output.

Open tool — XML Formatter

JSON Formatter & Validator

Check JSON syntax, format or minify locally, and copy or download output while preserving original data tokens.

Open tool — JSON Formatter & Validator

SMS 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 Calculator

Social Media Character Counter

Check platform-specific limits and split posts without losing text.

Open tool — Social Media Character Counter

Character Counter

Count characters, words, sentences and paragraphs. Check word density, reading time and UTF-8 size, all in your browser.

Open tool — Character Counter

Text Size Calculator

Compare text encodings and payload sizes in your browser.

Open tool — Text Size Calculator

PDF 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 Cleaner

Fancy Text Converter

Convert supported fancy Unicode letters to normal text locally. Keep case, accents, emoji and your original text.

Open tool — Fancy Text Converter

Garbled 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 Fixer

Gmail 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
View all tools in this category