Data URL Generator
Convert text and files to data: URLs with multiple output formats
📁
ファイルをドロップ
または クリックして選択
MIME型
-
元サイズ
-
URL文字数
-
データURL生成で出来る事 About Data URL Generator
データURL生成ツールは、テキスト入力やファイルアップロードから、ブラウザ上でdata:形式のURL(データURI)を即座に複数形式で生成できる無料ツールです。
HTMLやCSSに画像やフォント、小さなファイルを直接埋め込みたいとき、外部ファイルへのリクエストを減らしてページの読み込み速度を向上させたいとき、メール署名やシングルページアプリにインラインリソースを組み込みたいときなどに活躍します。
テキストモードでは任意の文字列をtext/plainやtext/html、application/jsonなど好きなMIME型でデータURLに変換でき、ファイルモードでは画像・音声・PDF・フォントなどあらゆるファイルをドラッグ&ドロップするだけでbase64エンコード済みのデータURLが得られます。生成結果にはMIME型、元データのバイトサイズ、データURL全体の文字数が表示されるため、埋め込み前にサイズ感を確認できます。
出力形式は4種類から選択可能:Raw(data:...をそのまま)、HTML img形式、CSS background形式、JSON形式。特にSVGファイルはRaw形式でエンコード済みのURL埋め込みを推奨します。
すべての処理はブラウザ内で完結し、ファイルや入力テキストが外部サーバーに送信されることはありません。コピーボタンで結果をワンクリック取得でき、開発中のHTMLやCSS、JavaScript、設定ファイルへすぐに貼り付けて利用できます。
The Data URL Generator is a free browser-based tool that instantly creates data URLs (data URIs) from text input or uploaded files in multiple output formats. Data URLs let you embed resources directly in HTML, CSS, or JavaScript without additional HTTP requests, which can improve page load performance for small assets.
In text mode, you can type or paste any string and convert it to a data URL with a configurable MIME type such as text/plain, text/html, or application/json. In file mode, simply drag and drop any file — images, audio, PDFs, fonts, and more — to get a base64-encoded data URL. The tool displays the detected MIME type, the original byte size, and the total character length of the generated data URL so you can judge whether the asset is small enough for inline embedding.
Choose from four output formats: Raw (data: URL as-is), HTML img tag format, CSS background-image format, and JSON structure. For SVG files, Raw format with base64 encoding is recommended for optimal performance (approximately 50% smaller than plain text embedding).
All processing happens entirely within your browser; no files or text are ever uploaded to an external server. A one-click copy button lets you quickly paste the result into your code, configuration files, or email templates. Whether you are a front-end developer optimizing asset delivery or a general user who needs to convert a small file into an embeddable format, this tool provides a straightforward, privacy-safe workflow.
データURL生成の使い方 How to use Data URL Generator
- 「テキスト入力」タブを選んで変換したいテキストを入力するか、「ファイル入力」タブを選んでファイルをドラッグ&ドロップします。
- テキストモードではMIME型を選択してから「データURL生成」ボタンを押します。ファイルモードではファイルを読み込むと自動的にデータURLが生成されます。
- 出力形式(Raw / HTML / CSS / JSON)を選択してから、コピーボタンでクリップボードに取得し、HTML/CSSなどに貼り付けます。
- Select the 'Text Input' tab and enter text, or select the 'File Input' tab and drag-and-drop a file.
- In text mode, choose a MIME type and click 'Generate Data URL'. In file mode, the data URL is generated automatically after loading the file.
- Select your desired output format (Raw / HTML / CSS / JSON), then use the copy button to paste the result into your HTML, CSS, or code.
データURL生成を使うメリット Benefits of Data URL Generator
- 【テキスト&ファイル両対応】文字列の直接入力にもファイルのドラッグ&ドロップにも対応し、あらゆる用途のデータURLを一つのツールで生成できます。
- 【複数出力形式に対応】Raw・HTML img・CSS background・JSON形式で出力可能。HTML埋め込みやCSS背景設定など、用途に応じた形式をすぐに取得できます。
- 【MIME型・サイズ情報を表示】生成結果にMIME型・バイトサイズ・文字数を表示するため、埋み込みに適したサイズかどうかを事前に判断できます。
- 【完全ブラウザ処理で安全】ファイルもテキストもサーバーへ送信されないため、社内資料や機密データの変換にも安心して使えます。
- [Text & File Support] Handles both direct text input and file drag-and-drop, so you can generate data URLs for any use case from a single tool.
- [Multiple Output Formats] Generate data URLs in Raw, HTML img tag, CSS background-image, or JSON format. Instantly get the format you need for your specific use case.
- [MIME Type & Size Info] Displays MIME type, byte size, and character count alongside the result, helping you decide if the asset is suitable for inline embedding.
- [Fully Local & Secure] All processing stays in your browser — no files or text are sent to any server, making it safe for internal or sensitive content.
他のカテゴリ Other Categories
Developer Tools の人気ツール TOP 10 Popular Developer Tools Tools TOP 10
Developer Tools のすべてのツール (43件) All Developer Tools Tools (43)
該当するツールが見つかりませんでした No matching tools found