Skip to content

Encodeurs & Crypto

Convertisseur Data URL

Convertisseur data URL gratuit. Encodez n'importe quel fichier en data URL base64 pour l'intégration en ligne, ou décodez un data URL en fichier. Basé sur le navigateur, sans téléversement.

Runs in your browser
Encode a file
Data URL

Note de la rédaction

Understanding · Files, smuggled into a string.

Ce chapitre approfondi n'est actuellement disponible qu'en anglais. L'outil de conversion ci-dessus fonctionne dans votre langue ; le long article explicatif n'a pas encore été traduit.

Questions fréquentes

Quick answers.

What is a Data URL?

A Data URL is a scheme used to embed data in-line in documents, formatted as `data:[mediatype][;base64],data`. It is commonly used for small icons or CSS assets to reduce external dependencies.

Are my files secure?

Yes. The encoding and decoding happen entirely within your browser's memory. No file data is sent to our servers or stored permanently.

When should I avoid Data URLs?

Base64 encoding increases file size by approximately 33% compared to binary files. Large files should be kept as separate assets to avoid slowing down page renders and to allow for browser caching.

How do I use the output in CSS?

Copy the generated string and paste it into a `url()` function, such as `background-image: url('data:image/png;base64,...');`. This embeds the image directly within your stylesheet.

Les internautes recherchent aussi

Use with

What people reach for next.

Outils similaires

More in this room.

Tout voir dans Encodeurs & Crypto