Skip to content

Base64 Tools

Encode and decode Base64 text, files and images without uploading anything.

Available tools

Base64 EncoderEncode text to Base64 with full UTF-8 support (emoji and accents included), with optional MIME or PEM line wrapping.Base64 DecoderDecode Base64 (standard or URL-safe, padded or not) back to UTF-8 text, with clear errors for invalid input.Base64URL EncoderEncode text as URL-safe Base64 (RFC 4648 §5) using - and _ without padding, as used in JWTs and URLs.Base64URL DecoderDecode URL-safe Base64 (with - and _, padding optional) such as JWT segments back to UTF-8 text.Image to Base64 ConverterConvert an image to a Base64 data URL with ready-to-paste CSS, HTML and Markdown snippets and a live preview.Base64 to Image ConverterPreview Base64 image data or a data URL as an image. The format (PNG, JPEG, GIF, WebP, SVG…) is detected automatically.File to Base64 ConverterEncode any file (PDF, font, audio, ZIP…) up to 25 MB to Base64 or a data URL, entirely in your browser.Base64 to File ConverterDecode Base64 or a data URL and download it as a file with the type and extension detected from its contents.JSON to Base64 EncoderValidate JSON, optionally minify it, and encode it to standard or URL-safe Base64.Base64 to JSON DecoderDecode Base64 to JSON, check that it is valid and pretty-print it with your chosen indentation.XML to Base64 EncoderCheck that XML is well-formed and encode it to Base64 (UTF-8), e.g. for SOAP attachments or SAML.Base64 to XML DecoderDecode Base64 to XML text (for example a SAML response) and check that the result is well-formed.Hex to Base64 ConverterConvert hexadecimal bytes (spaces, colons and 0x prefixes allowed) to standard or URL-safe Base64.Base64 to Hex ConverterConvert Base64 to hexadecimal bytes to inspect binary data, hashes and keys, with optional separators.