How Base64 works
Paste text or drop a file to encode or decode Base64 in your browser. Nothing leaves your machine.
Uses the browser's built-in btoa/atob with a TextEncoder/TextDecoder wrapper for full Unicode support.
Questions
- Is my data sent to a server?
- No. Everything runs in your browser. No data leaves your device.
- Can I encode files?
- Yes. Drop any file onto the input area to get its Base64 representation.
- What is Base64 used for?
- Base64 encodes binary data as ASCII text, commonly used in data URIs, email attachments, and API payloads.
More Text & Data tools
- .env InspectorInspect, mask, and convert env files
- JSONPath ExplorerPull a value out of JSON by path
- cURL → fetchConvert curl commands to fetch()
- Markdown PreviewerLive GitHub-flavored markdown
- JSON FormatterValidate and pretty-print
- Diff CheckerCompare two text blocks
- Word CountCount, readability, stats
- TimestampUnix, ISO 8601, relative time
- Hash GeneratorSHA-1, SHA-256, SHA-512
- URL EncoderEncode, decode, parse URLs
- Text CaseUPPER, lower, Title, camelCase, more
- Character EntitiesHTML entities, Unicode, ASCII lookup
- JSON to TypeScriptGenerate TypeScript interfaces from JSON
- JWT DecoderInspect JSON Web Tokens
- Page WeightWeigh a page: bytes, grade, Core Web Vitals, HAR diff
- SQL Viewer & CopyOpen a .sql file, read it, copy it
- SQL Formatter & MinifyBeautify or compact SQL
- SQL SplitterSplit a migration into statements
- SQL Pre-flight CheckCatch RLS gaps & risky SQL
- Base ConverterBinary, octal, decimal, hex, bitwise
- Unicode InspectorCode points, bytes, invisible characters