Base64 codificar / decodificar
Codifica y decodifica cadenas Base64 en el navegador
Input
Output
Encode and decode Base64 without trusting an online server
Base64 shows up everywhere — JWT payloads, image data URIs, email attachments, API request bodies. Encoding and decoding it in your browser keeps the data on your machine, which matters when the value is a token, a secret, or anything else you'd rather not paste into a remote service.
Use the tool when you need to
Decode a Base64-encoded value from a header
Inspect Authorization headers, encoded query parameters, or other Base64 strings safely in the browser.
Encode binary data for an API
Convert a small image or file into a Base64 string for inclusion in a JSON request body.
Flip between Base64 and Base64URL
Switch encoding variants when working with JWTs and URL-safe payloads.
How to encode or decode Base64 quickly
- 1
Paste the input into the text area.
- 2
Click Encode or Decode based on the direction you need.
- 3
Copy the result, or download it as a file when working with binary data.
Keep going
Encode URL components
Use percent-encoding when the destination is a URL rather than binary safety.
Decode JWTs
Use the focused decoder when the Base64 value is part of a token.
Format decoded JSON
Beautify the output if the decoded value turns out to be JSON.
Validate decoded JSON
Confirm the decoded JSON parses cleanly before passing it forward.
Common Base64 workflows
Decode a Basic auth header to see the raw username and password format being sent.
Encode a tiny image as a data URI and embed it directly in an API request body.
Decode a JWT segment, edit it, and re-encode it for testing — without server-side help.
Herramientas relacionadas
Preguntas frecuentes
Base64 convierte datos binarios en texto ASCII usando 64 caracteres imprimibles (A-Z, a-z, 0-9, +, /). Se usa para incrustar binarios en formatos basados en texto como JSON, XML, HTML y correo electrónico. El resultado suele ser ~33% más grande que la entrada.
Pega tu texto en el campo de entrada y haz clic en Encode. La herramienta convierte los caracteres a bytes UTF-8 y luego a su representación Base64. Usa Copy para copiar el resultado.
Casos típicos: incrustar imágenes pequeñas en CSS/HTML (data URIs), enviar datos binarios en APIs JSON, codificar el contenido de archivos para subidas, adjuntos de email (MIME) y almacenar binarios en bases de datos que solo aceptan texto.
Base64 estándar usa los caracteres + y /, que suelen requerir escape en URLs. Base64URL los reemplaza por - y _ y normalmente elimina el padding (=). Los JWT usan Base64URL porque los tokens a menudo se pasan en URLs.