Base64 Encoder & Decoder
Encode text to Base64 or Base64URL and decode it back, with full UTF-8 support for accents, Urdu script and emoji.
Runs on your device
Result
Results appear here as you type.
What it does
Base64 turns bytes into plain ASCII so they survive email, URLs and JSON. This tool encodes text as UTF-8 first, so non-English characters round trip correctly, and it accepts both standard and URL-safe alphabets when decoding.
How to use it
- Choose encode or decode.
- Paste the text or Base64 string.
- The result updates as you type; copy it when ready.
Example
The example fills in realistic values and runs the tool. Select Try an example above to see it.
When it helps
- Reading the contents of a Basic Auth header.
- Embedding small strings in environment variables.
- Decoding Base64URL segments from tokens.
Questions
Is Base64 encryption?
No. Anyone can decode it. Use it for transport, never to hide secrets.
What is URL-safe Base64?
It swaps the plus and slash characters for minus and underscore, and usually drops the = padding, so the value can be used in URLs and file names.
More developer tools
See all 25- JWT Decoder Decode a JSON Web Token header and payload, convert iat, nbf and exp to readable dates, and see whether it has expired. Tokens stay on your device.
- SHA Hash Generator Generate SHA-1, SHA-256, SHA-384 and SHA-512 hashes of any text using the browser Web Crypto API. Nothing you type is uploaded.
- UUID v4 Generator Generate up to 1,000 random version 4 UUIDs at once using a cryptographically secure random source, in lowercase, uppercase or without hyphens.
- Regex Tester Test JavaScript regular expressions against sample text and list every match with its position and capture groups.
- Unix Timestamp Converter Convert Unix timestamps in seconds or milliseconds to ISO 8601, UTC and local time, or turn a date string back into a timestamp.
- JSON to CSV Converter Convert a JSON array of objects into a CSV file. Nested objects become dot notation columns and formula like cells are neutralised for spreadsheets.
People also use
Browse all 200 tools- Random Word Generator Generate random English words by length and starting letter for games, brainstorming, writing prompts and creative naming. Text & writing
- Age Calculator Calculate exact age in years, months and days from a date of birth, plus total days and weeks lived and days until the next birthday. Everyday
- Audio Cutter & Trimmer Trim an MP3, WAV, M4A, OGG or FLAC file to the section you want, with optional fade in and out, and save it as WAV. Great for ringtones. Media & files
- Reorder PDF Pages Rearrange the pages of a PDF into any order, reverse it, or duplicate pages, by typing the new page sequence. PDF