ਤਸਵੀਰ ਤੋਂ Base64 ਕਨਵਰਟਰ (ਡਾਟਾ URI)
ਈਮੇਲਾਂ, CSS ਅਤੇ ਕੋਡ ਲਈ ਤਸਵੀਰ ਨੂੰ Base64 ਡਾਟਾ URI, ਸਾਦੇ Base64, CSS ਬੈਕਗ੍ਰਾਊਂਡ ਜਾਂ HTML img ਟੈਗ ਵਜੋਂ ਐਨਕੋਡ ਕਰੋ। 10 MB ਤੱਕ।
ਇਨਪੁੱਟ
ਸੁਝਾਅ: ਚਲਾਉਣ ਲਈ Ctrl + Enter ਦਬਾਓ
ਸੇਵ ਕੀਤੀਆਂ ਸੈਟਿੰਗਾਂ
ਹੇਠਾਂ ਦਿੱਤੀ ਵਿਸਤ੍ਰਿਤ ਮਦਦ ਫਿਲਹਾਲ ਸਿਰਫ਼ ਅੰਗਰੇਜ਼ੀ ਵਿੱਚ ਉਪਲਬਧ ਹੈ।
ਇਸ ਟੂਲ ਬਾਰੇ
Base64 turns binary data such as an image into plain text, so it can be embedded directly in HTML, CSS, JSON or an email template without a separate file. A data URI (data:image/png;base64,…) can be used anywhere a URL is expected.
This tool reads an image from your device and gives you a data URI, raw Base64, a ready-made CSS background-image rule or an HTML img tag. Base64 makes data about a third larger, so it is best for small icons and images rather than large photos.
ਕਿਵੇਂ ਵਰਤਣਾ ਹੈ
- Choose an image up to 10 MB.
- Choose the output: data URI, raw Base64, CSS or HTML.
- Run it and copy the result into your code.
ਗਣਨਾ ਕਿਵੇਂ ਕੰਮ ਕਰਦੀ ਹੈ
The file is read with the FileReader API and encoded in Base64 (every 3 bytes become 4 text characters). The MIME type is taken from the file and used in the data URI prefix.
data:<mime>;base64,<bytes encoded in Base64> (≈ 4/3 × file size)ਹੱਲ ਕੀਤੀ ਉਦਾਹਰਨ
A developer embeds a 1.2 KB SVG arrow icon into a CSS file to avoid an extra request. The CSS output gives background-image: url("data:image/svg+xml;base64,…") of about 1.6 KB: roughly a third larger than the file, but one fewer download for the page.
ਨਮੂਨਾ ਇਨਪੁੱਟ ਅਤੇ ਨਤੀਜਾ
ਇੱਕ ਫ਼ਾਈਲ ਚੁਣੋ ਅਤੇ ਚਲਾਓ ਦਬਾਓ। ਬਦਲੀ ਹੋਈ ਫ਼ਾਈਲ ਸਿੱਧੀ ਤੁਹਾਡੇ ਬ੍ਰਾਊਜ਼ਰ ਤੋਂ ਡਾਊਨਲੋਡ ਹੁੰਦੀ ਹੈ।
ਸੀਮਾਵਾਂ
- Images up to 10 MB.
- Large data URIs make HTML and CSS slower to parse and cannot be cached separately.
- No decoding of Base64 back to an image in this tool.
ਆਖਰੀ ਅੱਪਡੇਟ:
ਅਕਸਰ ਪੁੱਛੇ ਜਾਂਦੇ ਸਵਾਲ
Why is the Base64 bigger than the image?
Base64 encodes 3 bytes as 4 characters, adding about 33% plus a little overhead.
Do email clients show data URIs?
Support is inconsistent; many clients block them. Attached or hosted images are more reliable.
Is my image uploaded?
No. Encoding happens in your browser.
ਸਮੱਸਿਆ ਹੱਲ
The browser freezes on paste.
The string is very long; use a smaller image.
The image does not show in CSS.
Make sure the whole string, including the data: prefix, is inside url("...").
I need to decode Base64.
Use the Base64 encoder/decoder for text.
ਪਰਦੇਦਾਰੀ & ਮੁਫ਼ਤ ਵਰਤੋਂ
ਕੀ ਮੇਰਾ ਡਾਟਾ ਸਟੋਰ ਹੁੰਦਾ ਹੈ?
ਤੁਹਾਡਾ ਡਾਟਾ ਇਸੇ ਟੈਬ ਵਿੱਚ ਰਹਿੰਦਾ ਹੈ। ਸਾਨੂੰ ਤੁਹਾਡੀਆਂ ਫਾਈਲਾਂ, ਪੇਸਟ ਕੀਤਾ ਟੈਕਸਟ ਜਾਂ ਗਣਨਾ ਦੇ ਮੁੱਲ ਨਹੀਂ ਮਿਲਦੇ।
ਕੀ ਇਹ ਟੂਲ ਮੁਫ਼ਤ ਹੈ?
ਹਾਂ। ਕੋਈ ਸਾਈਨਅੱਪ ਜਾਂ ਭੁਗਤਾਨ ਨਹੀਂ ਚਾਹੀਦਾ।
ਇਹ ਵੀ ਦੇਖੋ
ਅਗਲੇ ਲਾਭਦਾਇਕ ਕਦਮ
JPG ਤੋਂ PNG ਕਨਵਰਟਰ
ਆਪਣੇ ਬ੍ਰਾਊਜ਼ਰ ਵਿੱਚ JPG ਤਸਵੀਰਾਂ ਨੂੰ PNG ਵਿੱਚ ਬਦਲੋ, ਇੱਕ ਵਾਰ ਵਿੱਚ 30 ਤੱਕ। PNG ਹਰ ਪਿਕਸਲ ਨੂੰ ਸੰਭਾਲ ਕੇ ਰੱਖਦਾ ਹੈ ਅਤੇ ਪਾਰਦਰਸ਼ਤਾ ਦਾ ਸਮਰਥਨ ਕਰਦਾ ਹੈ, ਇਸ ਲਈ ਸਕ੍ਰੀਨਸ਼ਾਟ, ਲੋਗੋ ਅਤੇ ਗ੍ਰਾਫ਼ਿਕਸ ਲਈ ਸਭ ਤੋਂ ਵਧੀਆ ਹੈ।
ਫ਼ਾਈਲ ਕਨਵਰਟਰPNG ਤੋਂ JPG ਕਨਵਰਟਰ
ਆਪਣੇ ਬ੍ਰਾਊਜ਼ਰ ਵਿੱਚ PNG ਤਸਵੀਰਾਂ ਨੂੰ JPG ਵਿੱਚ ਬਦਲੋ, ਇੱਕ ਵਾਰ ਵਿੱਚ 30 ਤੱਕ। JPG ਫ਼ਾਈਲਾਂ ਛੋਟੀਆਂ ਹੁੰਦੀਆਂ ਹਨ ਅਤੇ ਹਰ ਥਾਂ ਖੁੱਲ੍ਹਦੀਆਂ ਹਨ, ਇਸ ਲਈ ਫ਼ੋਟੋਆਂ ਅਤੇ ਫ਼ਾਰਮਾਂ ਵਿੱਚ ਅੱਪਲੋਡ ਲਈ ਸਭ ਤੋਂ ਵਧੀਆ ਹਨ; ਪਾਰਦਰਸ਼ੀ ਹਿੱਸੇ ਚਿੱਟੇ ਹੋ ਜਾਂਦੇ ਹਨ।
ਫ਼ਾਈਲ ਕਨਵਰਟਰWebP ਤੋਂ JPG ਕਨਵਰਟਰ
ਆਪਣੇ ਬ੍ਰਾਊਜ਼ਰ ਵਿੱਚ WebP ਤਸਵੀਰਾਂ ਨੂੰ JPG ਵਿੱਚ ਬਦਲੋ, ਇੱਕ ਵਾਰ ਵਿੱਚ 30 ਤੱਕ। JPG ਫ਼ਾਈਲਾਂ ਛੋਟੀਆਂ ਹੁੰਦੀਆਂ ਹਨ ਅਤੇ ਹਰ ਥਾਂ ਖੁੱਲ੍ਹਦੀਆਂ ਹਨ, ਇਸ ਲਈ ਫ਼ੋਟੋਆਂ ਅਤੇ ਫ਼ਾਰਮਾਂ ਵਿੱਚ ਅੱਪਲੋਡ ਲਈ ਸਭ ਤੋਂ ਵਧੀਆ ਹਨ; ਪਾਰਦਰਸ਼ੀ ਹਿੱਸੇ ਚਿੱਟੇ ਹੋ ਜਾਂਦੇ ਹਨ।
ਫ਼ਾਈਲ ਕਨਵਰਟਰ