Online Base64 Encoder and Decoder

Base64 encode and decode with proper UTF-8 handling. Convert text into Base64 for safe transport, or restore Base64 back to readable text. Great for tokens, data URIs, and fast diagnostics.

Base64 Encode / Decode

About Base64

Base64 encodes binary data as readable ASCII text using 64 symbols (A - Z, a - z, 0 - 9, +, /) with optional = padding. This tool focuses on text and safely converts it to/from UTF-8 so non-ASCII characters survive a full round-trip. πŸ“¦

What you can do

  • Encode text into Base64 for transport, storage, or embedding.
  • Decode Base64 strings back into readable UTF-8 text.
  • Swap fields to quickly chain multiple conversions.

How it works

  • Encode: Text β†’ UTF-8 bytes β†’ binary string β†’ Base64 (via btoa)
  • Decode: Base64 β†’ binary string (via atob) β†’ UTF-8 bytes β†’ Text

Base64 quick reference

Feature Description Notes
Alphabet A - Z a - z 0 - 9 + / 64 symbols total
Padding = May be one or two characters
Encoding size ~33% larger than input 4 chars per 3 bytes
Character safety ASCII-only output Safe for text transports

Buttons

  • Encode Β»: Convert input text to Base64 and show it on the right.
  • Decode Β»: Convert Base64 on the left back to readable text.
  • Β« Swap Β»: Swap left/right fields to continue in the opposite direction.
  • Copy Result πŸ“‹: Copy the right textarea to your clipboard.
  • Erase: Clear both fields.
  • Demo: Fill the input with a short example.

How to use

  1. Enter text or Base64 into the Input field.
  2. Click Encode to get Base64, or Decode to get text.
  3. Use Swap to move the result back to the input for another step.
  4. Click Copy Result to copy the output.

Examples

  • Hello β†’ Base64: SGVsbG8=
  • πŸ˜€ (UTF-8) β†’ Base64: 8J+YgA==
  • βœ“ OK β†’ Base64: 4pyTIM6PTw==

Tips

  • Base64 is not encryption - it only encodes data. Anyone can decode it πŸ”“
  • If decoding fails, check for missing padding (=) or invalid characters.
  • For URLs, APIs, or JWTs, you may need URL-safe Base64.

Notes & limitations

  • This tool is designed for text. For binary files, use a dedicated file-to-Base64 converter.
  • URL-safe Base64 replaces + with - and / with _ and may omit padding.
  • Very large inputs may be slow or memory-intensive in the browser.
Feature 01

Text Paint

online text paint Draw ASCII art on a canvas with unicode characters. Convert image files to text, merge two text documents, rotate, crop and other useful features. TextPaint.com

Feature 02

Text Fancy

fancy text converters Fancy Text converters online to create ASCII art, π–˜π–šπ–•π–Šπ–— πŸ…πŸ…¦πŸ…”πŸ…’πŸ…žπŸ…œπŸ…” Ρ”Ε¦Ε¦Ρ”Ο‚Υ‡ΰΈ£ made with unicode characters. Highlight your messages and social media posts. TextFancy.com

Feature 03

Text Heads

heads and faces with characters Text face Κ•ΰ² ΰ²Ώα΄₯ΰ² Κ” gallery and editor to express emotions (γ€β—‰η›Šβ—‰)぀ and create portraits with plain text. Design your own or pick one from the gallery ( Ν‘~ ΝœΚ– Ν‘Β°) TextHeads.com

Need more features?