Skip to content
toolsdocks

Encoder and decoder: Base64, URL, HTML, hex and Unicode

Pick an encoding and a direction, then type or paste. The result updates as you type and invalid input is reported rather than guessed.

Runs on your device
Loading tool…

How to use

  1. Pick an encoding and direction.
  2. Type or paste; the result updates live. Invalid input is reported, not guessed.

Worked example

“héllo wörld” URL-encodes to h%C3%A9llo%20w%C3%B6rld and Base64-encodes to aMOpbGxvIHfDtnJsZA==.

Supported formats and limits

InputText, Files (Base64)
OutputText, Files (decoded Base64)
EngineTextEncoder/TextDecoder with strict validation

Limitations

  • Decoding Base64 to text assumes UTF-8; binary data is offered as a file download instead.

Questions

How do I convert hex to text?

Choose Hex, paste the hex bytes and decode. The bytes are read as UTF-8, and an invalid sequence is reported instead of being shown as garbled text.

How do I convert an image to Base64?

Choose Base64, open the image as a file and copy the encoded text. Decoding works the other way: paste Base64 and download the original image or file.

Is encoding the same as encryption?

No. Base64, URL encoding, HTML entities, hex and Unicode escapes are reversible representations that anyone can decode without a key. Do not use them to hide passwords or secrets.

Which URL encoding should I use?

Component mode encodes every reserved character, for a single query value or path segment. URI mode leaves characters such as / ? & = in place, for a whole address. “héllo wörld” becomes h%C3%A9llo%20w%C3%B6rld.

What happens with binary Base64?

If the decoded bytes are not valid UTF-8 text, they are offered as a file download instead of shown as garbled text. Files can also be encoded to Base64.

Privacy

Runs on your device. Files and text are processed in this browser tab and are not uploaded.

See the privacy policy for how toolsdocks handles data.