Data & file tools · Free online tool

Data URL generator

Turn text or a selected local file into a percent-encoded or Base64 data URL. Create a self-contained URL for small test assets, snippets or prototypes without uploading the source file.

3 guest runs per rolling 24 hours10 with a free accountPrivate inputsMobile-friendly

Data URL generator workspace

Runs locally in your browser

Checking your allowance…

Guest access includes 3 public-tool runs per rolling 24 hours. Inputs stay on this device.

The file or text is processed locally and is not uploaded. A selected file takes priority over entered text. Keep data URLs small because many browsers and services impose practical limits.

Choose a file, or leave this empty to encode the text below.

Result

Input and URL size
Normalised media type
Generated data URL

Use it with confidence

How to use the data URL generator.

01

Add the requested inputs

Use the labelled fields in the workspace above. If example values are provided, try them first or replace them with your own.

02

Calculate and review

Use the main action when needed. Text is encoded in the browser; files are read locally as bytes and represented with the chosen compatible encoding and media type.

03

Try a worked example

Select a small SVG or enter plain text, confirm its media type and generate a copyable data: URL.

04

Check the assumptions

Data URLs can be much larger than source files, may be blocked by content-security policy and are unsuitable for large assets, secrets or untrusted active content.

Helpful answers

Data URL generator FAQs.

Is the data URL generator free?

Yes. Guests receive 3 runs per rolling 24 hours, verified free accounts receive 10, and Premium subscribers receive unlimited normal use.

Does UtilHub upload or save my inputs?

No. This tool runs in your browser and UtilHub does not receive or store the values you enter. Your browser or device may still retain normal local history or form data.

How does this data URL generator work?

Text is encoded in the browser; files are read locally as bytes and represented with the chosen compatible encoding and media type.

What should I check before using the result?

Data URLs can be much larger than source files, may be blocked by content-security policy and are unsuitable for large assets, secrets or untrusted active content.