UTILITIES NEWBIE

Text encoding and escaping

Convert UTF-8 text with Base64 or URL-component encoding, or escape one value for a selected text dialect. Encoding is not encryption; do not enter secrets.

Input

Import a local text file

0 UTF-16 code units

Inputs start empty. Load example fills them only when you choose it. Reset clears current inputs and results.

Use the operation selector below for UTF-8 Base64 and URL-component conversion.

Optional local draft

Saving stores a plaintext draft in this browser on this device. Do not save secrets or use this on a shared device. Nothing is saved or loaded automatically. Reset does not delete a saved draft; use Delete local draft.

No draft has been loaded.

Output

This tool processes inputs in your browser. See the Privacy Policy for details about hosting and performance measurement.

Follow the UTF-8 message. Full explanation follows.
Café is input text. Text explanation

The checked message Café is encoded as UTF-8 bytes, then represented as Q2Fmw6k= in standard padded Base64. Decoding that representation as UTF-8 recovers Café. This is a reversible text representation, not encryption or a file-format detector.

Move text between a message and its transport representation

Choose a representation for the receiving field

This workspace converts text to UTF-8 Base64, decodes supported Base64 back to UTF-8 text, and encodes or decodes one URL component. Start by identifying the field that will receive the result. A Base64 field and a query parameter expect different representations even when both appear in an address. Choose the operation explicitly, paste a small synthetic sample, and inspect the output before copying a larger value. The tool transforms text; it does not contact a destination, test an API, open an address, or establish that a receiving system accepts your message.

An everyday example is a small test description that must travel through a text-only interface. Base64 represents the UTF-8 bytes with a restricted alphabet. It is reversible representation, not encryption, authentication or a way to hide private information. Anyone with the string and an ordinary decoder can recover supported text. Keep tokens, passwords and customer records out of demonstrations. A useful test message contains a space or accented letter so that the result exercises the same encoding boundary as the real field, without exposing the real value.

For a query parameter, encode its value rather than pasting an entire address into the component encoder. A slash or ampersand inside a value must be distinguished from the separators used by the surrounding URL. Constructing the surrounding address remains your responsibility. Encoding a whole URL as one component will also encode separators that were intended to remain structural. Conversely, leaving a value unencoded can turn part of it into another parameter. The correct choice depends on the receiving field's contract, not on whether the output looks more technical.

Work through an accented test message

Checked synthetic input

Café

Exact observed output

Q2Fmw6k=

Paste Café and choose UTF-8 to Base64. The checked result is Q2Fmw6k=. The initial ASCII letters contribute their familiar single bytes, while the accented final letter contributes multiple UTF-8 bytes. Base64 groups the resulting bytes, not the visible letters, into its alphabet and padding. Copy the complete output, including the final equals sign. If a recipient trims or replaces characters, that is a separate transport problem. Do not repair a failing value by removing padding until it happens to look acceptable; first identify the representation the recipient actually requires.

For the reverse check, choose Base64 to UTF-8 and supply that complete result. The recovered message is Café. This pair establishes a narrow text round trip for the chosen fixture. It does not establish support for arbitrary binary files or a different character encoding. A byte sequence can be valid Base64 yet fail when decoded as UTF-8. The tested value /w== demonstrates this distinction: the Base64 bytes cannot be interpreted as a valid UTF-8 message by this decoder. A failure there is not evidence that the original bytes were necessarily corrupt.

Now test a URL component containing a space, plus sign, ampersand, slash and accented letter. The supplied worked example shows each sensitive part in its encoded form. A space becomes %20, while a literal plus becomes %2B. Decoding a+b%20c produces a+b c: the original plus remains a plus. This operation is not a form-urlencoded parser that automatically treats every plus as a space. Compare the exact decoded characters rather than relying on a screenshot of the surrounding address bar, where some representations may be visually simplified.

Respect the text and decoding boundaries

The input ceiling is 100,000 UTF-16 code units and the output ceiling is 1,000,000 characters. A visible symbol may occupy more than one code unit, and a UTF-8 message may occupy more bytes than its character count suggests. Local text-file import has a separate 100,000-byte limit. These are different measurements; meeting one does not automatically prove that another is satisfied. Large transformations can also approach an output limit before an input limit. Use a short representative test first rather than assuming that a whole exported document is an appropriate message.

Base64 decoding here requires the supported padded standard representation without embedded whitespace. URL-safe substitutions, missing or noncanonical padding and copied line wrapping are not silently repaired. The processor checks the decoded representation rather than merely accepting a familiar-looking alphabet. If an external service explicitly uses Base64URL, do not assume this text decoder is its matching implementation. Find the documented format and keep the original value intact while investigating. Repeated guessing can destroy the evidence needed to distinguish a copy problem, a different alphabet and invalid text bytes.

URL-component decoding likewise expects valid percent escapes and valid encoded text. A malformed escape such as %ZZ produces an error rather than a partial best-effort result. Decoding repeatedly can change meaning: %252F first becomes %2F and only another decode would produce a slash. Establish how many encoding layers the sender intended. An encoded value is not automatically a trustworthy URL, a safe file path or a permitted network destination. This workspace does not validate schemes, hosts, authorization or application rules, and it does not provide an end-to-end security assessment of the surrounding workflow.

Use a small verification loop in real work

For an API example, keep a short raw message beside the encoded fixture and record the selected operation. Include both in internal test documentation so another developer can reproduce the transformation. If the expected result changes, compare the original characters, encoding name and copy boundaries before changing application code. Line breaks are data when present in the input, not decoration to remove automatically. A pasted trailing newline can change Base64 even though the visible message seems identical. Compare exact output text and, where important, the receiving system's own documented decoding behavior.

For an import troubleshooting task, reduce a failing value to a non-sensitive specimen that still reproduces the issue. Check whether it is standard Base64, a URL component or a representation embedded within another representation. Run only the intended next transformation, then inspect the result before continuing. Copy and Download operate on generated output; they are convenience handoff controls, not proofs that a downstream application consumed it correctly. Retain the raw fixture separately so that later decoding experiments do not overwrite the only trustworthy account of what originally arrived.

When documenting a support procedure, state the expected characters rather than writing only “decode this.” Explain whether a literal plus must survive, whether UTF-8 is required, and whether padding is part of the message. Those details prevent plausible-looking but wrong substitutions. Use the adjacent HTML and SQL tools only for their own contexts; Base64 and URL-component encoding do not replace them. A successful conversion answers a representation question. The useful completion check is that the correct receiving field can recover the intended synthetic message without changing its characters, boundaries or meaning.

Supporting reference: Base64 context.

Related existing tool: html escape.

Find a tool

Type a tool name, such as JSON or percentage.

Quick links

Browse by category

All tools