Convert Data URL to UTF8 screenshot

Convert Data URL to UTF8

Decode a data URI into UTF-8 text, base64 or percent-encoded, with the byte count shown.

Privacy First
0 Runs
Updated 2026-11-06
No upload
Instant
No signup

What this page computes

Paste a data: URL and the page returns the text it carries. It splits at the first comma, reads ;base64 from the metadata, and either decodes the base64 payload or resolves the percent escapes; the bytes are then decoded as UTF-8. The second line names the media type, the form it detected and the byte count, so a truncated paste is visible before the text is trusted.

Where it stops

Only UTF-8 is decoded: a URL that names another charset is refused, because decoding those bytes as UTF-8 would print mojibake and call it an answer. A base64 section whose length is not a multiple of four, an overlong UTF-8 sequence, a byte that does not start a sequence, or a percent escape that is not two hex digits is refused by offset rather than replaced. The page decodes text; it does not render the image or run the payload.

The parse and the decode run in this tab. Nothing is uploaded, nothing is stored, and the same URL always yields the same text.

`data:text/plain;base64,SGVsbG8sIHdvcmxkIQ==` decodes to `Hello, world!`: the payload is read as base64 or percent escapes, the bytes are decoded as UTF-8, and the media type and byte count are printed.

A URL that names another charset is refused, because decoding those bytes as UTF-8 would print mojibake and call it text.

How to use it

Paste the whole URL and press Run. Everything before the first comma is metadata — media type, `;base64`, a charset — and everything after it is the payload.

The decoding

A base64 payload is grouped four characters at a time into three bytes, honouring `=` padding; a percent payload is read byte by byte, with `%XX` resolved and everything else taken literally as UTF-8. The byte stream is then decoded strictly as UTF-8.

Where it stops

A text that is not a data URL, one with no comma, an unknown charset, or an invalid byte sequence is refused with the offset quoted. The page decodes text only: it does not render an image, run a script or save a file.

What to Expect

Best for

  • `data:text/plain;base64,SGVsbG8sIHdvcmxkIQ==` decodes to `Hello, world!`: the payload is read as base64 or percent escapes, the bytes are decoded as UTF-8, and the media type and byte count are printed.
  • Seeing the result before copying it.

What this tool keeps

  • Your input is converted in the browser and never posted, so the page works offline and retains nothing.

Sample input

data:text/plain;base64,SGVsbG8sIHdvcmxkIQ==

Sample output

Hello, world! text/plain, base64 — 13 bytes → 13 characters

Frequently asked questions

How do I use it?

Paste the data URL and press Run. The decoded text is printed first, with the media type, the detected form and the byte count on the second line.

Is anything uploaded?

No. The text is converted in this tab with JavaScript: no request is made, no account is needed, nothing is stored, and the page keeps working offline once loaded.

What are its limits?

The payload must be UTF-8: another charset is refused by name. A base64 length that is not a multiple of four, an overlong UTF-8 sequence or a percent escape that is not two hex digits must be refused by offset rather than replaced.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.