Back to Developers
Text
How it works
Encodes plain text to Base64 and decodes Base64 back to readable text, supporting UTF-8 characters including emoji and non-Latin scripts.
Who it's for: Developers handling Basic Auth headers, data URIs, embedded payloads, and legacy APIs that expect Base64 strings
Encodes arbitrary UTF-8 text into a Base64 string safe for HTTP headers and JSON fields.
Decodes Base64 back to the original text when the input is valid.
Runs entirely client-side with no server round trip.
How to use
- Enter or paste your text in the input field.
- Click Encode to produce a Base64 string, or Decode when starting from Base64.
- Copy the result for use in Authorization headers, config files, or test fixtures.
- If decoding fails, confirm padding, line breaks, and that the string is standard Base64 (not Base64URL unless adjusted).
Good to know
- Base64 increases size by roughly 33%—use it for transport encoding, not compression.
- JWT segments use Base64URL (no padding, URL-safe alphabet)—this tool uses standard Base64 for general text.
- Line-wrapped PEM blocks may need newlines removed before decoding.
Related tools
More calculators in the same category
- JSON FormatterFormat, minify, and validate JSON in your browser
- JWT DecoderDecode JWT tokens locally — nothing is sent to a server
- Cron Expression BuilderBuild and explain cron schedules
- UUID GeneratorGenerate cryptographically random UUID v4 values
- Timestamp ConverterConvert Unix timestamps to dates and back
- Hash GeneratorSHA-256, SHA-384, and SHA-512 hashing in the browser