Encode and decode text with Base64, URL encoding, HTML entities, hex, ROT13, Morse code, and binary. Instant, no signup, runs in your browser.
Text encoding converts readable characters into a different representation for transmission, storage, or compatibility reasons. Base64 encodes binary data as printable ASCII for use in HTTP headers, email, and JSON payloads. URL encoding replaces characters that are not safe in URLs with percent-encoded sequences. HTML entity encoding prevents special characters from being interpreted as markup. Hex and binary encodings express character values as numeric representations. ROT13 and Morse code are lightweight ciphers and communication formats used in specific contexts.
Select a transform mode from the options above, paste text into the input area, then click Encode or Decode. Base64, URL, HTML, hex, and binary encodings are fully reversible. ROT13 is symmetric: encoding and decoding produce the same result. Morse converts letters, digits, and common punctuation to dot-dash sequences separated by spaces, with slashes between words. If the input is invalid for the chosen decode mode, an error is shown rather than producing corrupted output.
Use Base64 encode when building HTTP Basic Auth headers, embedding images as data URIs, or storing binary blobs in JSON. Use URL encode when constructing query strings or API parameters that contain special characters. Use HTML encode when inserting user-supplied text into HTML templates to prevent XSS. Use hex encode when inspecting the byte values of individual characters or when working with low-level protocols.