Author: ToolBrainy Team

  • “Unexpected token in JSON at position 0”: What It Means and How to Fix It

    “Unexpected token in JSON at position 0”: What It Means and How to Fix It

    “Unexpected token < in JSON at position 0” means the text you tried to parse isn’t JSON at all. It’s almost always an HTML page, usually a 404, a 500 error page or a login redirect, returned where your code expected JSON. Look at the raw response in your browser’s Network tab, fix the URL or the server error, and the message goes away.

    Newer versions of Chrome and Node word the same error differently: Unexpected token '<', "<!DOCTYPE "... is not valid JSON. Same cause, same fix. This guide covers that one first, then every other common JSON.parse error, with the exact messages a current Chrome shows.

    What “position 0” tells you

    The position is the character where the parser gave up, counting from 0. Position 0 means the very first character was wrong. Valid JSON can only start with {, [, ", a digit, -, true, false or null. So if the first character is <, you’re looking at HTML or XML.

    A position further along, like 26, means the start was fine and something broke in the middle. That’s usually a typo in the JSON itself (see the table below).

    Fixing “Unexpected token <“: find out what you actually received

    A typical line that triggers it:

    const res = await fetch('/api/users');
    const data = await res.json(); // 💥 Unexpected token '<'

    res.json() calls JSON.parse on whatever came back. To see what that was:

    1. Open DevTools (F12) → Network, reload, click the request and open the Response tab.
    2. Or log it in code before parsing:
      const res = await fetch('/api/users');
      const text = await res.text();
      console.log(res.status, res.headers.get('content-type'), text.slice(0, 200));

    You’ll almost always see one of these:

    • A 404 page: the URL is wrong. Look for a missing /api prefix, a typo, a relative path resolving against the wrong base, or a trailing slash the server treats differently.
    • A 500 error page: the server crashed and its framework returned an HTML error page. Fix the server error. The JSON problem is just a symptom.
    • A login page or redirect: your session expired or the request is missing its auth header or cookie, so the server sent you to sign in.
    • Your app’s index.html: in single-page apps, the dev server returns index.html for any unknown path. That usually means the API proxy isn’t set up, or the request went to the frontend’s port instead of the API’s.
    • A firewall or CDN challenge page: bot protection answered instead of your API.

    Make your code fail with a useful message

    const res = await fetch('/api/users');
    if (!res.ok) throw new Error(`HTTP ${res.status} from ${res.url}`);
    const type = res.headers.get('content-type') || '';
    if (!type.includes('application/json')) {
      throw new Error(`Expected JSON, got ${type}: ${(await res.text()).slice(0, 100)}`);
    }
    const data = await res.json();

    Now you get “HTTP 404 from https://…” instead of a confusing parse error.

    Want to test the endpoint on its own, outside your app? Send the same request in the ToolBrainy API Tester and look at the status code and raw body. Our guide on testing a REST API online walks through it.

    Every common JSON.parse error, and what causes it

    These are the exact messages from Chrome 139, which uses the same engine as Node.js. Firefox words them differently (“JSON.parse: unexpected character at line 1 column 1”), but the causes are the same.

    Error message What you passed Fix
    Unexpected token '<', "<!DOCTYPE "... is not valid JSON An HTML page Check the URL, status code and server logs (see above)
    Unexpected end of JSON input An empty string, or JSON cut off mid-way The response body was empty (often a 204 or an error) or truncated. Check that there’s a body before parsing.
    "undefined" is not valid JSON The value undefined The variable was never set, for example reading a localStorage key that doesn’t exist.
    "[object Object]" is not valid JSON An object that’s already parsed Don’t parse it again. It’s already JavaScript, or it was turned into a string without JSON.stringify.
    Expected property name or '}' in JSON at position 1 {'name': 'Ana'} or {name: "Ana"} JSON needs double quotes around every key and string.
    Expected double-quoted property name in JSON at position … {"a": 1, "b": 2,} Remove the trailing comma after the last property.
    Unexpected token ']', "[1, 2, 3,]" is not valid JSON A trailing comma in an array Remove the comma before ].
    Expected ',' or ']' after array element / Expected ',' or '}' after property value A missing comma, a comment, or truncated JSON JSON has no comments, so remove // and /* */. Otherwise, look for the missing comma at the position given.
    Unexpected non-whitespace character after JSON {"a":1}{"b":2} Two JSON values glued together, often from appending to a file or streaming. Wrap them in an array, or parse one value per line.
    Bad control character in string literal A real line break or tab inside a string Escape it as \n or \t, or build the JSON with JSON.stringify instead of by hand.
    Unexpected token 'N', "{"v": NaN}" is not valid JSON NaN or Infinity JSON has no NaN or Infinity. Use null or a string.
    Unexpected token '', "{…" is not valid JSON A file starting with an invisible byte order mark (BOM) Save the file as UTF-8 without BOM, or strip it with text.trim() (in JavaScript, trim() removes a BOM too).

    Find the exact spot in a big JSON file

    Newer error messages include the line and column, like (line 1 column 27), but minified JSON is all one line. The quickest way to find the problem is to paste it into the ToolBrainy JSON Formatter. It shows the parser’s error if the JSON is invalid. Once it’s valid, it formats the JSON with 2 spaces, 4 spaces or tabs so you can actually read it. It runs in your browser, so API responses and config files stay on your machine.

    Prevent it next time

    • Never build JSON by hand with string concatenation. Use JSON.stringify (or your language’s equivalent). It handles quotes, escapes and commas for you.
    • Check res.ok before calling res.json(). Most “Unexpected token <” errors are really HTTP errors in disguise.
    • Return JSON errors from your API. Configure your server to answer API routes with {"error": "…"} and a proper status code, not an HTML error page.
    • Wrap risky parses in try/catch when the input comes from users, files or localStorage.
    function safeParse(text, fallback = null) {
      try { return JSON.parse(text); }
      catch (e) { console.warn('Invalid JSON:', e.message); return fallback; }
    }

    Frequently asked questions

    What does “Unexpected token < in JSON at position 0” mean?

    The first character of the text you parsed was <, so it’s HTML, not JSON. Usually it’s an error page or a redirect returned by the server. Check the response in the Network tab.

    Why does it work in Postman but fail in my app?

    The requests are different. Compare the full URL, the method, the headers (especially Authorization and Content-Type) and the cookies. In the browser, a CORS preflight or a dev-server proxy can also change where the request actually goes.

    What does “Unexpected end of JSON input” mean?

    The parser ran out of text before the JSON was complete. Most often the response body was empty, for example a 204 No Content or an error with no body.

    Does JSON allow comments or trailing commas?

    No. Standard JSON allows neither. Some config formats (like JSON5, or the JSONC used in VS Code settings) do, but JSON.parse doesn’t accept them.

    How do I validate JSON online?

    Paste it into a JSON validator such as the ToolBrainy JSON Formatter. It shows the parser’s error if the JSON is invalid and formats it if it’s valid.

    The short version

    Position 0 and a < means you got HTML: check the URL, the status code and the auth. Any other position means the JSON itself is broken. Look for single quotes, trailing commas, comments or unescaped line breaks, and paste it into the JSON Formatter to see the error.

  • How to Make a 3.5 x 4.5 cm Passport Photo Online (Free)

    How to Make a 3.5 x 4.5 cm Passport Photo Online (Free)

    A 3.5 × 4.5 cm passport photo is 413 × 531 pixels at 300 DPI. To make one, crop your photo to a 7:9 shape (slightly taller than wide), resize it to 413 × 531 px, and save it as a JPEG. You can do all three steps free in your browser with ToolBrainy. Your photo is never uploaded.

    3.5 × 4.5 cm (35 × 45 mm) is the passport and visa photo size used by the UK, India, the Schengen countries and many others. The US uses a square 2 × 2 inch photo instead. Both are covered below.

    Passport photo sizes in pixels

    To turn centimetres into pixels, you need a resolution. Photo printing uses 300 DPI (dots per inch), so 1 cm ≈ 118 px.

    Size Where it’s used Pixels at 300 DPI Shape
    3.5 × 4.5 cm (35 × 45 mm) UK, India, Schengen/EU and many others 413 × 531 px 7:9
    2 × 2 in (51 × 51 mm) United States 600 × 600 px 1:1
    5 × 7 cm (50 × 70 mm) Canada 591 × 827 px 5:7
    3.3 × 4.8 cm (33 × 48 mm) China 390 × 567 px 11:16

    Rules change, and online forms sometimes ask for a different pixel size than the printed photo. Always check the official site for the passport or visa you’re applying for, and follow the form when it disagrees with this table.

    Before you start: take a usable photo

    • Plain, light background. Stand about half a metre in front of a white or off-white wall.
    • Even light, no shadows. Face a window in daylight. Avoid overhead lights that throw shadows under your eyes.
    • Camera at eye level, about 1.5 m away. Too close and your face looks distorted. Ask someone else to take it rather than holding the phone out.
    • Neutral expression, eyes open, looking straight at the camera. No glasses for most countries, and nothing covering your face.
    • Leave space around you. Include your head and the top of your shoulders, with room above your hair. You’ll crop it down.

    Step by step: make a 3.5 × 4.5 cm passport photo

    Step 1: Crop to a 7:9 shape

    Open the Crop Image tool and choose your photo. Drag the corners of the crop box around your head and shoulders. Under the image, the tool shows the crop size in pixels. Aim for a width-to-height ratio of 7:9, for example:

    • 700 × 900 px
    • 840 × 1080 px
    • 1050 × 1350 px

    It doesn’t need to be exact to the pixel. A few pixels off won’t be visible after resizing. Most countries want your face (chin to the top of your head) to fill about 70–80% of the photo’s height, so leave a small gap above your hair and keep your face centred.

    Step 2: Resize to 413 × 531 pixels

    Open the Image Resizer, add the cropped photo, keep Lock aspect ratio ticked and type 413 in Width. If your crop was close to 7:9, the height comes out at about 531. If it’s a few pixels off, untick the lock and type both numbers. The tiny stretch won’t be visible. Set the output format to JPEG and download.

    Step 3: Check the file size (for online forms)

    A 413 × 531 JPEG is usually well under 100 KB. If the form has a stricter limit, such as 20 KB or 50 KB, run it through the Image Compressor and lower the quality until it fits. Our guide on resizing an image to 20 KB has the exact settings.

    US passport photo: 2 × 2 inches

    Same steps, different shape:

    1. Crop to a square (equal width and height in the crop readout).
    2. Resize to 600 × 600 px for a 2 × 2 in print at 300 DPI.
    3. For the US online visa form (DS-160), the photo must be a square JPEG between 600 × 600 and 1200 × 1200 px and no larger than 240 KB. 600 × 600 at normal JPEG quality fits easily.

    The US also asks for your head (chin to top of hair) to measure 1 to 1⅜ inches, about 50–69% of the photo’s height.

    Printing a passport photo at home or at a shop

    Pixels only become centimetres when printed at the right resolution. When you print, choose actual size or 100%, never “fit to page”, and make sure the printer or shop prints at 300 DPI. Many photo shops will print several copies on one standard photo print, which is usually cheaper than printing just one.

    Common reasons passport photos get rejected

    • Shadows on the face or background.
    • Head too small or too big in the frame. Crop closer or leave more space.
    • Stretched or squashed face from resizing with the wrong ratio. Crop to the right shape first.
    • Heavy filters or beauty retouching. Most passport offices reject edited faces.
    • Wrong file format. Use JPEG (.jpg) unless the form asks otherwise. Not sure why? See JPG vs PNG vs WebP.

    Frequently asked questions

    How many pixels is a 3.5 x 4.5 cm photo?

    413 × 531 pixels at 300 DPI. At 600 DPI it would be 827 × 1063, but online forms almost always want the 300 DPI size or smaller.

    Is 3.5 x 4.5 cm the same as 35 x 45 mm?

    Yes. Some forms write it as 4.5 × 3.5 cm (height first). It’s the same photo, taller than it is wide.

    Can I make a passport photo on my phone?

    Yes. The ToolBrainy crop, resize and compress tools all work in mobile browsers on Android and iPhone, with nothing to install.

    Is it safe to edit my passport photo online?

    The ToolBrainy image tools process the photo in your browser, so it isn’t uploaded to a server.

    Can I change the background colour to white?

    The easiest route is to take the photo against a white wall. Editing the background later often leaves visible edges around your hair, which can get the photo rejected.

    The short version

    Take the photo against a plain wall in daylight → crop to 7:9 in the Crop Image tool → resize to 413 × 531 px in the Image Resizer → save as JPEG and check the size. For the US, crop square and resize to 600 × 600 px.

  • How to Compress a PDF to 100 KB (Free, No Signup)

    How to Compress a PDF to 100 KB (Free, No Signup)

    To compress a PDF to 100 KB, you have to shrink the images inside it, not just the file. Convert the pages to JPG, resize each page to 700–800 px wide, compress them at around 50–60% JPEG quality, then combine them back into one PDF. With ToolBrainy that takes four free tools and a couple of minutes, all in your browser. One page of text, or two or three lighter pages like certificates and ID cards, fits under 100 KB.

    The 100 KB limit usually shows up at the worst moment: a job portal, an exam registration, a visa form or a government site that rejects anything bigger. And most “compress PDF” buttons barely move a scanned document, because the weight is in the page images. This guide shows the routine that actually gets you under the limit, with settings we tested.

    Why most PDFs won’t drop to 100 KB with one click

    A PDF is a container. What makes it heavy depends on what’s inside:

    • Text-based PDFs (exported from Word or Google Docs) are often already small. A few pages of real text can sit well under 100 KB, and removing leftover metadata and duplicate objects may be all you need.
    • Scanned PDFs and phone photos are different. Every page is a full-size photo, often 1–3 MB each. Removing structural overhead won’t touch that. The only way down is smaller, more compressed images.

    So first, check which kind you have. If you can select and copy the text, it’s text-based. If the whole page behaves like a picture, it’s scanned.

    Option 1: text-based PDF, try a quick compress first

    1. Open the ToolBrainy PDF compressor.
    2. Drop in your PDF and click Compress PDF.
    3. Check the new size. It strips metadata, redundant objects and structural bloat while keeping text and fonts intact.

    If you’re under 100 KB, you’re done. If not, or if your file is scanned, use Option 2.

    Option 2: scanned PDF, rebuild it with smaller images

    This is the method that reliably works. You turn each page into an image you control, shrink it, and put the PDF back together.

    Step 1: Turn the PDF pages into JPGs

    Open PDF to JPG, add your file and set Image quality to High (95%). You’ll compress in Step 3, so start from the cleanest copy. Convert and download the page images. Each page becomes its own JPG.

    Already have photos of the document instead of a PDF? Skip this step and start at Step 2.

    Step 2: Resize each page to 700–800 px wide

    Open the Image Resizer, add the page images, type 800 in Width (or 700 for text-heavy pages) and leave Lock aspect ratio ticked. At that width, an A4 page is still readable on screen. Go much lower and small print starts to blur.

    Step 3: Compress the images

    Open the Image Compressor, choose JPEG as the output format and set the Quality slider to about 60%. The tool shows the new size of each image. Add them up, leave about 5 KB of headroom for the PDF itself, and adjust:

    • Over the limit? Drop to 50%, or narrow the width by 100 px.
    • Well under? Raise the quality for a sharper result.

    Step 4: Combine the images back into a PDF

    Open JPG to PDF, add the compressed images in the right order and pick A4 or Letter as the page size (or Fit image to page for no borders). JPGs are embedded as they are, so the PDF ends up roughly the size of your images added together.

    Step 5: Check before you upload

    Open the new PDF and zoom to 100%. Can you read the smallest text, the signature and any stamps? If something looks blurry, go back to Step 3 and raise the quality by 5–10%. The goal is the clearest file that still fits under the limit.

    What fits in 100 KB: tested sizes per page

    We measured A4 pages through the same browser JPEG compression these tools use. Sizes are per page:

    Page type Width Quality Size per page
    Light page (certificate, ID card, short letter) 800 px 60% about 40–50 KB
    Light page 700 px 60% about 35 KB
    Half page of text 700 px 60% about 60–70 KB
    Full page of small text 700 px 50% about 90 KB

    That means 100 KB realistically holds:

    • 1 full page of text, or
    • 2 light pages at 800 px, or 3 light pages at 600–700 px, or
    • 1 half page plus 1 light page.

    Phone scans with grey paper, shadows or grain come out bigger than clean pages, so treat these as best-case numbers and go by the size the tool shows.

    Got four or more pages of text? As images, they won’t fit in 100 KB and stay readable. Check whether the portal only needs certain pages, or lets you upload them as separate files. If you have the original Word or Google Docs file, export it straight to PDF: real text takes far less space than a picture of text.

    Tips that make a big difference

    • Crop before you shrink. Phone scans often include the table, your fingers or a dark border. Cut it with the Crop Image tool so every kilobyte goes to the document.
    • Send only the pages they asked for. If the form wants your ID’s front side only, don’t attach the back. Use PDF Split to pull out just those pages.
    • Scan in good, even light. Shadows and grain add detail the compressor has to keep, which makes files bigger.
    • Keep your original. Compression can’t be undone. Work on a copy so you can start over at higher quality.

    Frequently asked questions

    Can I compress a PDF to 100 KB without losing quality?

    For a text-based PDF, often yes: removing overhead doesn’t change what you see. For a scanned PDF, there’s always some loss, because the images have to get smaller. At the settings above, text stays readable on screen, which is what forms and portals need.

    Is it safe to compress ID cards or certificates online?

    All the ToolBrainy tools in this guide process files in your browser. Your documents aren’t uploaded to a server, so they never leave your device.

    How do I compress a PDF to 200 KB or 500 KB instead?

    Same steps, gentler settings. For 200 KB, two full text pages at 700 px and 50–60% usually fit. For 500 KB, you can keep pages at 1000 px and 70% quality, which comes to about 65–110 KB per page depending on how much text is on it.

    Can I do this on my phone?

    Yes. All four tools work in mobile browsers on Android and iPhone, with nothing to install.

    Why is my PDF still over 100 KB after compressing?

    Usually because it’s a scanned PDF, and one-click compression only removes structural overhead. Rebuild it with smaller images using Option 2 above. If it’s still too big, it probably has more pages than 100 KB can hold. See the table above.

    The short version

    PDF to JPG → resize to 700–800 px → compress to JPEG at 50–60% → JPG to PDF → check at 100% zoom. Start with the PDF to JPG converter. Need a photo or signature under a limit instead? See how to resize an image to 20 KB. For more on keeping PDFs light, read how to compress a PDF without losing quality.

  • How to Resize an Image to 20 KB (or 50 KB) for Online Forms

    How to Resize an Image to 20 KB (or 50 KB) for Online Forms

    To get an image under 20 KB, make it smaller in pixels first, then lower the JPEG quality. Resize the photo to about 300 px wide, then compress it to JPEG at around 60–70% quality, and check the size. For 50 KB, around 600 px wide at 70% usually works. You can do both steps free in your browser with ToolBrainy.

    Exam registrations, job portals, scholarship forms and government sites love tight upload limits: “photo between 10 and 20 KB”, “signature under 10 KB”, “max 50 KB”. A phone photo is often 2–5 MB, more than 100 times too big. Here’s how to get it down without making it unrecognisable.

    Why a quality slider alone isn’t enough

    File size depends on two things: how many pixels the image has and how heavily each one is compressed. A 4000 × 3000 phone photo has 12 million pixels. Even at very low quality, that’s too much data for 20 KB, and the result looks blocky.

    Cutting the pixels does most of the work. A 300 × 400 image has just 120,000 pixels, 1% of the original, so it fits under 20 KB at a quality where it still looks clean.

    Step by step: resize an image to 20 KB

    Step 1: Crop to what the form wants

    Most forms want your face and shoulders on a plain background, not the whole room. Use the Crop Image tool to cut out everything else. If the form says “3.5 × 4.5 cm”, that’s a 7:9 ratio, slightly taller than wide.

    Step 2: Reduce the pixel size

    Open the Image Resizer, add your photo and type a width, keeping Lock aspect ratio ticked:

    • Under 20 KB: 300 px wide (or the exact pixel size the form gives, such as 200 × 230).
    • Under 50 KB: 500–600 px wide.
    • Under 100 KB: 800–1000 px wide.

    Set the output format to JPEG and download.

    Step 3: Compress to the exact limit

    Open the Image Compressor, add the resized image, choose JPEG and set Quality to about 70%. The tool shows the new file size:

    • Still too big? Lower the quality in steps of 5–10%.
    • Below 50% and still too big? Go back to Step 2 and use a smaller width. That looks better than crushing the quality.
    • Too small? Some forms have a minimum, like 10 KB. Raise the quality until you’re inside the range.

    Step 4: Check it like the examiner will

    Open the final image at full size. Is your face clear, with no blocky patches around your eyes and hair? Is the background plain? If so, upload it.

    Starting settings by target size

    Target Width JPEG quality Typical use
    Under 10 KB 140–200 px 60–70% Signatures, small ID photos
    10–20 KB 200–300 px 60–75% Exam and job form photos
    Under 50 KB 500–600 px 65–75% Profile photos, ID scans
    Under 100 KB 800–1000 px 70–80% Documents, certificates

    These are starting points. Busy backgrounds, grain and low light make files bigger, so always go by the size the tool shows.

    Signatures: the easiest file to get tiny

    Signature uploads often need to be under 10 KB and around 140 × 60 px. Sign in black ink on white paper, photograph it in daylight, crop tightly around the signature, resize to the requested pixels, then compress to JPEG at about 70%. A clean signature usually comes in at just a few kilobytes. If the paper looks grey, the Background Remover can help clean it up first.

    Common mistakes

    • Uploading a PNG. PNG is great for logos and screenshots, but photos come out much bigger than JPEG. Use JPEG (.jpg) unless the form asks for something else. Not sure why? Read JPG vs PNG vs WebP.
    • Using WebP when the form wants JPG. WebP is smaller, but many government portals only accept .jpg or .jpeg.
    • Compressing the same file again and again. Each pass loses more detail. Go back to the original and start over with a smaller width.
    • Stretching the photo. Typing both width and height with the aspect lock off distorts faces. Crop to the right shape first, then resize.

    Frequently asked questions

    How do I reduce a photo to 20 KB on my phone?

    Open the ToolBrainy tools in your phone’s browser. They work on Android and iPhone with nothing to install. Crop, resize to about 300 px wide, then compress to JPEG at 60–70%.

    Will my photo look bad at 20 KB?

    Not if you shrink the pixels first. A 300 px photo at 70% quality looks clean at the size forms display it. It only looks bad if you keep the full resolution and push the quality very low.

    Is it safe to upload my ID photo to an online tool?

    The ToolBrainy image tools process files in your browser, so your photo isn’t uploaded to a server.

    What’s the difference between KB and pixels?

    Pixels are the image’s dimensions (for example 300 × 400). KB is the file size on disk. Forms often specify both, and you need to meet both.

    Can I compress several photos at once?

    Yes. The Image Compressor and Image Resizer both accept multiple images and let you download them all together.

    The short version

    Crop → resize to about 300 px wide (600 px for 50 KB) → compress to JPEG at 60–70% → check the size → upload. Start with the Image Resizer, then finish in the Image Compressor. Need a PDF under a limit instead? See how to compress a PDF to 100 KB.

  • How to Add a Watermark to a PDF for Free

    How to Add a Watermark to a PDF for Free

    You’re sending a proposal that isn’t final yet, or a design proof a client shouldn’t be forwarding around, and you want the file to say so on every page. A watermark is the obvious answer. The part that trips people up is what happens next: the watermark comes out so faint nobody notices it, or so heavy the document underneath becomes unreadable.

    The other thing worth clearing up early, because we get asked it constantly: a watermark is a label, not a lock. It tells a reader how to treat the document. It does not stop anyone doing anything with it. Once you separate those two jobs, the whole thing gets much simpler.

    What a watermark actually does — and what it doesn’t

    A watermark is text or an image laid over every page, usually semi-transparent. That is the entire mechanism. Which means:

    • It communicates status. DRAFT, CONFIDENTIAL, SAMPLE, or your company name — the reader knows immediately what they’re holding.
    • It discourages casual misuse. Someone is far less likely to forward a proof stamped SAMPLE across three departments.
    • It does not prevent copying, printing, or editing. Anyone with the right software can strip a watermark out. Treat it as a sign on a door, not a deadbolt.

    If you genuinely need to stop people opening or editing a file, that’s password protection, and it’s a different job entirely. Watermarking and protecting are often confused because both feel like “securing the document” — they aren’t the same thing at all.

    The fastest way: add it in your browser

    If you just need the stamp on there now, our free PDF watermark tool does it in a few clicks: type your text, set the opacity and angle, and download. It runs entirely on your device, so the file is never uploaded anywhere — which matters, because the documents people watermark are usually the confidential ones.

    Every page gets the same watermark automatically, so a 40-page contract takes the same effort as a single-page letter.

    Getting it right: a practical checklist

    1. Keep opacity between 10% and 30%. Below 10% it vanishes on screen and disappears entirely in print. Above 30% it starts fighting the text underneath. Around 20% is the sweet spot for most documents.
    2. Go diagonal for status, horizontal for branding. DRAFT and CONFIDENTIAL read best at roughly 45° across the middle of the page. A company name or URL usually sits better horizontally in the footer area.
    3. Use grey, not colour. Grey stays neutral against black text and prints predictably on any printer. Red might look emphatic on screen, but it turns into a muddy smear on a monochrome office printer.
    4. Keep the wording short. One or two words. “CONFIDENTIAL” works; “CONFIDENTIAL — DO NOT DISTRIBUTE OUTSIDE THE COMPANY” becomes an unreadable band of grey.
    5. Watermark last, compress after. Do all your editing first, add the watermark, then run one pass through a PDF compressor if the file needs to be smaller. Watermarking a compressed file and compressing again just stacks up quality loss.
    6. Always keep the clean original. The watermark is baked in once you save. If you later need an unmarked copy, you need the file you started from.

    What to write on it

    The wording does more work than the styling. A few that earn their place:

    • DRAFT — the version isn’t final and shouldn’t be quoted.
    • CONFIDENTIAL — internal only, don’t forward.
    • SAMPLE or PROOF — for work sent before payment or sign-off.
    • Your company name or domain — for reports and whitepapers you actually want shared.
    • The recipient’s name — for documents sent individually. If a copy leaks, you know which one it was.

    That last one is quietly the most effective of the lot. It changes the behaviour of the person holding the file far more than a generic CONFIDENTIAL ever does.

    When a watermark goes wrong

    Two failures come up again and again. The first is the invisible watermark: it looks fine on a bright laptop screen, then prints as nothing at all, because the opacity was set for a backlit display rather than ink on paper. If the document is going to be printed, check it on paper before you send fifty copies.

    The second is the scanned document. If your PDF is a scan — a photographed contract, an exported image — the pages are pictures, not text, and a watermark laid over them can wash out signatures or handwritten notes. Keep the opacity at the very low end for scans, or position the watermark along an empty margin instead of across the middle.

    Questions people ask about PDF watermarks

    How do I add a watermark to a PDF?

    Open the file in a watermarking tool, type your text, set the opacity and angle, then download the result. With a browser-based tool it takes under a minute and every page is stamped automatically.

    Can you add a watermark to a PDF for free?

    Yes. It needs no paid software and no signup. Our tool runs in the browser at no cost, with no limit on the number of files.

    Does a watermark protect my PDF?

    No. It labels the document, it does not secure it. A watermark can be removed by anyone with the right software. For real restrictions you need password protection, which is a separate feature.

    Can a watermark be removed from a PDF?

    Yes, with the right tools. This is exactly why it should be treated as a deterrent and a label rather than a security measure.

    What opacity should a PDF watermark be?

    Between 10% and 30%, with around 20% suiting most documents. Anything fainter risks vanishing in print; anything heavier competes with the text.

    Will the watermark appear on every page?

    Yes. A watermark is applied across the whole document, so every page carries it without you having to repeat the step.

    The short version

    Pick one or two words, set the opacity around 20%, use grey, go diagonal for status and horizontal for branding, and keep an unmarked original. And remember what it is for — a watermark tells people how to treat your document, it does not stop them. When you’re ready, our PDF watermark tool will stamp the whole file in a few seconds.

  • How to Compress Images for Web (Without Them Looking Awful)

    How to Compress Images for Web (Without Them Looking Awful)

    You publish a page, open it on your phone away from wifi, and watch the pictures crawl in one band at a time. Almost always the cause is the same: the images went up exactly as they came off a camera or a designer’s export. A single untouched photo can weigh more than every other part of the page combined, and it’s usually the easiest thing on the whole site to fix.

    A 6 MB photograph, 4000 pixels wide, sitting in a column roughly 700 pixels across. That exact mismatch turns up in more of the uploads we see than any other single problem. Nothing is wrong with the picture itself — it is simply around thirty times larger than the page has any use for, and every visitor pays for the difference.

    Why your images are heavier than they need to be

    • They’re far bigger than the space they sit in. Browsers scale a 4000-pixel image down to fit a 700-pixel column, but the visitor still downloads all 4000 pixels first.
    • The format doesn’t match the content. A photograph saved as PNG can easily be five times the size of the same photo as JPG, with no visible gain.
    • Exports keep quality at maximum by default. Most design tools save at 100% quality, well past the point where anyone can see a difference.
    • Hidden data rides along. Camera metadata, colour profiles and thumbnails add weight that no visitor will ever see.

    The fastest fix: compress in your browser

    If you want the file smaller right now, use a browser-based tool. Our free image compressor re-encodes your image at a sensible quality level and strips the data the web doesn’t need, typically cutting 60–80% off the file with nothing you can spot at normal viewing size.

    It runs entirely on your own device, so nothing is uploaded to a server. That matters if you’re working with client photos, product shots that haven’t launched yet, or anything else you’d rather not hand to a third party.

    Compressing properly: a practical checklist

    1. Resize before you compress. This is the step that does the heavy lifting, and most people skip it. Bring the image down to the largest width it will ever actually be shown at using our image resizer — usually 1600–2000 px for a full-width banner, and far less for anything in a column.
    2. Crop away what you don’t need. Empty sky and background are still pixels you’re paying to send. A tighter crop often improves the picture as well as the file size.
    3. Choose the right format. Photos want JPG or WebP; logos, icons and screenshots want PNG or WebP. Our image converter handles the switch, and there’s more detail in our guide to JPG vs PNG vs WebP.
    4. Then compress. Around 75–85% quality is the sweet spot for photographs. Below roughly 60% you start to see it.
    5. Keep the original. Compression is one-way. Store one clean master copy so you can start again if you ever need a bigger version.
    6. Check it at full size on a real screen. Zoom to 100% and look at faces, fine text and any flat areas of sky or wall — that’s where problems show first.

    What to actually aim for

    Useful targets rather than rules, for typical website images:

    • Full-width hero image: 1600–2000 px wide, under 200 KB.
    • In-article or blog image: 1000–1200 px wide, under 100 KB.
    • Product thumbnail or card: 400–600 px wide, under 40 KB.
    • Logo or icon: exact display size, under 20 KB.
    • Whole page: try to keep every image on it adding up to under 1 MB.

    If a single image on your site is over 500 KB, it’s almost certainly resizeable rather than un-compressible.

    When compression genuinely shows

    Some images resist compression, and it’s worth knowing which so you don’t blame the tool. Screenshots containing small text go mushy quickly, because the sharp edges are exactly what lossy compression discards first. Large flat gradients — a clear sky, a plain studio backdrop — can develop visible banding. Illustrations with hard lines suffer in the same way photographs don’t.

    The pattern we run into most is people compressing an already-compressed file. Each pass discards a little more, and after three or four rounds a photo looks visibly rough for no extra saving. If an image already looks slightly soft before you start, go back to the original rather than squeezing it again. For anything with text or sharp edges, switch it to PNG or WebP instead of pushing the JPG quality lower.

    Questions people ask about compressing images

    How much can I compress an image before it looks bad?

    For photographs, 75–85% quality is invisible to almost everyone. The visible threshold usually sits somewhere around 60%, and lower for images containing text.

    Should I resize or compress?

    Both, in that order. Resizing removes pixels you never needed; compressing makes the remaining pixels cheaper to store. Resizing saves far more.

    Does compressing images actually help SEO?

    Indirectly, yes. Page speed is a ranking signal and image weight is usually the largest single factor in it. The bigger effect is on visitors, who leave slow pages.

    Is WebP worth switching to?

    For the web, generally yes — typically 25–35% smaller than JPG at matching quality, with support in every current browser. Keep a JPG if the file also has to open in older desktop software.

    Will compressing remove my image’s metadata?

    Usually, and that’s normally a good thing for the web. If you need to keep copyright or camera data, check the tool’s behaviour and keep an untouched original either way.

    Before you upload

    Resize first, pick a format that suits the content, compress once, and keep the master copy. Those four habits will take most sites from sluggish to quick without changing a single line of code. When your images are ready, run them through our image compressor and check the saving before you upload.

  • How to Convert JPG to PDF (and Keep It Looking Right)

    How to Convert JPG to PDF (and Keep It Looking Right)

    You have eight photos of a signed form, or a pile of receipts your accountant wants, and the instruction is always the same: send it as one PDF. Attaching eight separate JPGs looks careless, and whoever receives them has to open each one in turn. The conversion itself takes about thirty seconds — it’s the order, the orientation and the file size that quietly cause all the trouble.

    The pattern we run into most often is not really a conversion problem at all. Someone converts their images one at a time, ends up with eight separate PDFs, then goes hunting for a merge tool to undo the mess. What they wanted from the start was simply “all of these in one file, in this order, the right way up.” Get that sequence right and the rest takes care of itself.

    Why you keep getting asked for a PDF

    Images are fine for looking at. PDFs are what organisations ask for, and usually for good reasons:

    • One file, one fixed order. Pages stay in sequence. Nobody has to work out whether IMG_4471 comes before or after IMG_4468.
    • It prints predictably. A PDF carries a page size, so it comes out of the printer the way you intended rather than filling a sheet at random.
    • Upload forms often accept nothing else. Job applications, visa portals, insurance claims and university submissions frequently reject image files outright.
    • It opens anywhere. Phone, laptop, an ancient office PC — a PDF looks identical on all of them.

    The fastest fix: convert in your browser

    If you just need the file now, use a browser-based converter. Our free JPG to PDF converter lets you select several images at once, arrange them into the order you want, and export the lot as a single PDF. There’s no signup and no watermark.

    The part that matters most for documents: it runs entirely in your browser, so your files are never uploaded to a server. If you’re converting an ID card, a bank statement or a signed contract, that difference is worth caring about.

    Converting cleanly: a practical checklist

    1. Sort your files before you start. Most converters add images in the order you select them. Renaming to 01, 02, 03 takes a moment and saves you re-ordering pages later.
    2. Rotate first, not after. Sideways pages are the single most common complaint, and they’re far easier to fix in the image than in the finished PDF.
    3. Crop out the desk. Photos of documents almost always include the table edge, a shadow or your thumb. A quick pass with our crop tool makes the result look scanned rather than snapped.
    4. Shrink oversized photos. A modern phone photo is far more detail than any A4 page needs. Running them through our image compressor first keeps the PDF small without any visible difference.
    5. Convert odd formats up front. If your files are HEIC, WebP or PNG, put them through our image converter first so everything behaves consistently.
    6. Open the finished PDF before you send it. Check every page is present, upright, and readable at 100% zoom. Ten seconds here prevents a resubmission.

    Page size and resolution: what to actually pick

    Two settings decide how your PDF looks. Neither needs much thought once you know the rule:

    • A4 (210 × 297 mm) — the default nearly everywhere outside North America. Use it for anything official.
    • Letter (8.5 × 11 in) — use this if the document is going to the US or Canada.
    • Fit to image — the page takes the shape of your photo. Good for artwork and screenshots, wrong for anything that will be printed.
    • 150 DPI is plenty for reading on screen and emailing. 300 DPI is only worth it for professional printing.

    As a rough guide, a 12-megapixel phone photo (about 4000 × 3000 pixels) already exceeds 300 DPI on an A4 page. You are almost never short of resolution — you’re far more likely to have too much of it.

    When it genuinely goes wrong

    Three problems account for most bad conversions. Pages come out rotated, because phones store orientation as hidden metadata that some tools ignore. The file lands at 30–40 MB, because ten untouched phone photos were dropped straight in. Or the text is legible on screen but mushy when printed, because the original photo was taken at an angle in poor light.

    The pattern we see most often is the last one: the conversion is blamed when the photograph was the real problem. No converter can add detail that the camera didn’t capture. Retaking the photo flat, in daylight, with the document filling the frame will beat any setting you can change afterwards. If the file is simply too big, convert first and then run the result through our PDF compressor — that’s usually enough to clear a 10 MB upload limit.

    Questions people ask about converting JPG to PDF

    Can I put several JPGs into one PDF?

    Yes. Select all the images together, arrange them into the order you want, and export once. You’ll get a single multi-page PDF rather than one file per image.

    Does converting to PDF reduce image quality?

    Not by itself. A straight conversion embeds your image as it is. Quality only drops if you deliberately apply compression, or if you resize the image down beforehand.

    Why is my PDF so much bigger than the photos?

    It usually isn’t — it’s the sum of them, plus a little overhead. Ten 4 MB photos make a roughly 40 MB PDF. Compress the images first, or the PDF afterwards.

    Does it work with PNG, WebP or iPhone HEIC files?

    PNG and WebP generally convert without trouble. HEIC is less widely supported, so convert those to JPG first and the rest of the process is identical.

    Is it safe to convert ID documents or bank statements?

    With a browser-based tool that processes files on your own device, nothing is uploaded anywhere, which makes it far safer than a service that sends your document to a server. Always check how a tool handles files before trusting it with anything sensitive.

    Before you send it

    Get the order right, rotate and crop before converting, and pick A4 unless you’re sending to North America. Those three habits cover almost every problem people run into. When your images are ready, drop them into our JPG to PDF converter and you’ll have one tidy document in a few seconds.

  • How to Crop a JPEG Image Online and Avoid Quality Loss

    How to Crop a JPEG Image Online and Avoid Quality Loss

    To crop a JPEG image online, open the ToolBrainy image cropper, choose your photo, drag the crop box around the area you want to keep, and select Crop Image. Then select Download image to save a separate copy.

    Keeping a photo sharp takes a little more care than choosing the right rectangle. A small crop may look blurry when enlarged, and saving a JPEG can introduce compression changes. This guide explains how to avoid unnecessary quality loss and what the tool can—and cannot—do.

    How to crop a JPEG image online

    1. Start with your original photo. Keep an untouched copy. If possible, use the camera original rather than an image downloaded from a messaging app that may have compressed it.
    2. Choose the file. Open the free image cropper and select Choose image, or drag a file into the drop area. JPG/JPEG, PNG and WebP are supported.
    3. Frame the subject. Drag the corners of the crop box to remove unwanted edges. Move the selection to keep the part you need. Watch the Crop size readout: it shows the selected width and height in pixels.
    4. Apply the crop. Select Crop Image. The result shows its pixel dimensions and approximate file size.
    5. Save and inspect the result. Select Download image. A JPEG input is saved as a .jpg file with “-cropped” added to the filename. Open it at 100% zoom and check the detail you care about before using it.

    The current tool uses a freehand selection. It does not offer preset aspect-ratio locking or boxes for typing an exact crop width and height. For a precise ratio, use an editor with that control rather than relying on an approximate square.

    Does cropping reduce image quality?

    Cropping removes the area outside your selection. It reduces the image’s total pixel count without needing to enlarge the remaining area. However, the crop operation and the process of saving the result are separate.

    ToolBrainy creates a new image from the selected area. JPEG and WebP outputs are re-encoded, so they are not guaranteed to be pixel-identical to the original. PNG uses lossless compression, but saving an already damaged JPEG as PNG cannot recover missing detail.

    For photographs, one carefully chosen crop may give a perfectly usable result. Avoid repeatedly opening, editing and saving successive JPEG copies. Return to your original whenever you need a different crop.

    A pixel-size example: when a crop becomes too small

    Illustrative example—not a measured tool test: suppose your original photo is 2400 × 1600 pixels. You select an area 1200 × 800 pixels. That crop keeps the same 3:2 shape and contains 960,000 pixels, one quarter of the original pixel count.

    If you enlarge that crop to 2400 × 1600, an editor has to create additional pixels. It cannot recover the original detail outside your selection, and the result may look soft. If you keep only a 600-pixel-wide area but need a 1200-pixel-wide output, choose a wider crop or start with a higher-resolution photo.

    The practical rule is to check your destination’s required dimensions before cropping. Leave enough pixels for the final output and avoid enlarging a small selection unnecessarily.

    Cropping versus resizing

    Crop when you want to remove a distracting border, frame a face, or show only one part of a screenshot. Resize when you want the whole image at different pixel dimensions.

    You may need both: first choose the composition, then use an image resizer if the destination needs a smaller exact output size. Keep intermediate saves to a minimum, especially with JPEG.

    Which file format should you use?

    • JPEG/JPG: suitable for photographs where a smaller file matters. JPG and JPEG refer to the same image format. Repeated lossy saves can accumulate visible artifacts.
    • PNG: useful for screenshots, text, diagrams and transparency. Its lossless compression avoids introducing new compression artifacts, but photographic files can be large.
    • WebP: supports both lossy and lossless encoding. Do not assume every WebP export is lossless; the encoder’s settings matter. This cropper does not provide a lossless WebP switch.

    The cropper is designed to preserve these supported input formats. If you need another format, use the image converter. For a deeper comparison, read JPG vs PNG vs WebP.

    Common cropping problems

    Why does my cropped photo look blurry?

    Check whether the viewer is enlarging the result. Compare it at 100% zoom, inspect the original for compression artifacts, and check whether you started from a low-resolution copy. A tighter crop can make existing defects easier to notice. Re-encoding may also introduce changes.

    Why is the cropped file larger?

    Fewer pixels do not guarantee fewer bytes. The original compression settings, output format and encoder affect file size. Compare both dimensions and file size. If you have an upload limit, try an image compressor after the final crop, then check whether important detail is still readable.

    Can I undo a crop after downloading it?

    You cannot restore the removed area from the flattened cropped file alone. Use your original photo to make another crop. Downloading a cropped copy does not itself overwrite the source file, but take care when moving or renaming files afterward.

    What if my phone photo will not open?

    Check its format. A phone photo may be HEIC rather than JPEG. This tool’s file picker supports JPEG, PNG and WebP; export a compatible copy with an application that supports the original format before cropping.

    Are my photos uploaded?

    The cropper processes the selected image locally in the browser using an image canvas. Its cropping code does not upload your photo. This describes file processing; it does not mean the website makes no network requests to load the page or its resources.

    Before you use the finished image

    Check the crop’s dimensions, inspect it at its intended display size, and keep your original. If the image contains personal information, confirm that the downloaded file shows only what you intend to share. Then use your cropped copy where you need it.

    Editorial note: This guide was revised with AI assistance using the tool’s interface and implementation as references. The numerical example is illustrative, not a reported hands-on test.

  • How to Test a REST API Online Without Installing Anything

    How to Test a REST API Online Without Installing Anything

    The first API bug that really cost me an afternoon was a 401 Unauthorized that had nothing to do with my credentials. The key was correct. The endpoint was correct. What was wrong was that I had typed Authorisation instead of Authorization in the header name, and the server did what servers do: it ignored the header it did not recognize and told me I was not logged in.

    I found it in about ten seconds once I stopped guessing and actually sent the request somewhere I could see every part of it. That is really all API testing is: making the invisible parts of a request visible so you can tell which one is wrong.

    What “testing an API” actually means

    When your app talks to an API, a lot happens that you never see. Your code builds a request, a library adds headers you did not write, the server responds, and somewhere in the middle something breaks. Testing an API means taking your application out of the loop entirely and sending the request by hand, so you can answer one question: is the problem my code, or is it the API?

    That single question saves enormous amounts of time. If the request works when you send it manually, the bug is in your code. If it fails the same way manually, the bug is in your request, your credentials, or the API itself. You have just cut the search space in half.

    Every request has exactly four parts

    No matter how complicated an API looks, every request you will ever send is built from the same four pieces. Once you can see all four, debugging gets much easier.

    1. The method. The verb: GET, POST, PUT, PATCH, or DELETE. It tells the server what kind of operation you want.
    2. The URL. The address of the resource, including any query parameters after the ?.
    3. The headers. Metadata about the request: what format you want back, who you are, what content you are sending.
    4. The body. The actual data you are sending, usually JSON. GET and DELETE normally have no body.

    A minimal request looks like this:

    GET https://api.github.com/users/octocat
    Accept: application/json

    You can send exactly that from the free online API tester without installing anything. Pick the method, paste the URL, hit send, and read what comes back.

    Picking the right method

    Using the wrong verb is one of the most common reasons a request fails with a confusing error. The convention is consistent across almost every REST API:

    • GET retrieves data and changes nothing. Safe to repeat.
    • POST creates something new. Repeating it usually creates duplicates.
    • PUT replaces a resource entirely with what you send.
    • PATCH updates only the fields you include.
    • DELETE removes the resource.

    The PUT versus PATCH distinction catches people out constantly. If you send a PUT with only one field, a strict API will treat every field you left out as deliberately blanked. When you only mean to change one thing, PATCH is almost always what you want.

    Reading the response

    The status code is the first thing to look at, and it tells you far more than most people use it for. The pattern is simple: 2xx means it worked, 4xx means you made a mistake, 5xx means the server made a mistake.

    • 200 OK — success, with data in the body.
    • 201 Created — your POST worked and something new exists.
    • 204 No Content — success, but there is deliberately nothing to return. Common after a DELETE.
    • 400 Bad Request — the server could not parse what you sent. Usually malformed JSON.
    • 401 Unauthorized — the server does not know who you are. Your credentials are missing, malformed, or expired.
    • 403 Forbidden — the server knows exactly who you are and you are not allowed. Do not go looking for a credentials bug here.
    • 404 Not Found — wrong URL, or the resource genuinely does not exist.
    • 422 Unprocessable Entity — your JSON was valid but the values failed validation. The body usually says which field.
    • 429 Too Many Requests — you hit the rate limit. Look for a Retry-After header.
    • 500 Internal Server Error — the API crashed. Not your fault, though a malformed request can sometimes trigger it.

    The 401 versus 403 distinction is worth committing to memory. It is the difference between “I don’t know you” and “I know you, and no.” People burn hours regenerating perfectly good API keys because they read a 403 as an authentication problem.

    Your first request, step by step

    Open the API tester and try a real public endpoint that needs no key:

    1. Set the method to GET.
    2. Enter https://api.github.com/users/octocat as the URL.
    3. Add a header: name Accept, value application/json.
    4. Send it.

    You should get a 200 back with a JSON object describing that account. Now change the username to something that does not exist and send it again. You will get a 404 with a short JSON body explaining the problem. That contrast, the same request succeeding and failing on one small change, is the whole debugging loop in miniature.

    Next, try sending data. This endpoint accepts test posts and echoes back what it received:

    POST https://jsonplaceholder.typicode.com/posts
    Content-Type: application/json
    
    {
      "title": "Testing an API",
      "body": "Sent from a browser.",
      "userId": 1
    }

    The Content-Type header matters here. Leave it off and many servers will not parse your body at all, then reject the request for missing fields you clearly sent. If the response comes back as a dense unreadable blob, paste it into the JSON formatter to expand it, and to confirm your own request body was valid JSON in the first place.

    Authentication: the three patterns

    Nearly every authenticated API uses one of three approaches, and all three are just headers.

    Bearer tokens are the most common. You send a token issued by the API:

    Authorization: Bearer YOUR_TOKEN_HERE

    The word Bearer, the single space, and the exact spelling of Authorization all matter. If the token is a JWT, you can check what is inside it and whether it has already expired using the JWT decoder. An expired token is a very common cause of a sudden 401 on code that worked yesterday.

    API keys come in a custom header, and the name varies by service:

    X-API-Key: YOUR_KEY_HERE

    Some APIs instead want the key as a query parameter. Check the docs, because guessing wastes time.

    Basic auth sends a username and password Base64-encoded. It is the oldest pattern and still turns up in internal and legacy systems. If you need to build or inspect one by hand, the Base64 encoder handles the encoding step. Worth remembering: Base64 is encoding, not encryption, so Basic auth over plain HTTP is effectively sending your password in the clear.

    Why the browser sometimes blocks you

    This is the one thing that confuses people testing APIs from a browser, and it is worth understanding rather than fighting.

    Browsers enforce CORS, a security rule that stops a page on one domain from freely reading responses from another domain. If the API does not explicitly send back a header saying “requests from other origins are allowed,” the browser refuses to hand you the response, even though the server answered perfectly well.

    The important part: a CORS error is not an API error. The request usually succeeded. The browser is simply declining to show you the result. Signs you are looking at CORS rather than a real failure:

    • The status shows as 0, or there is no status at all.
    • The error mentions “origin”, “cross-origin”, or “Access-Control-Allow-Origin”.
    • The same URL works fine when you open it directly in a new tab.

    Public APIs designed for browser use, like the two in the examples above, send the right headers and work fine. Internal APIs and many paid services do not, by design. For those, test from a server-side tool or ask whoever runs the API to allow your origin.

    The errors you will actually hit

    • 401 on a key you know is right → check the header name spelling and that the word Bearer is present with one space after it.
    • 400 on a body that looks fine → run it through a JSON validator. A trailing comma or a smart quote from a word processor will do it.
    • Server ignores your data → you almost certainly forgot Content-Type: application/json.
    • 404 on a URL you copied from the docs → check for a missing or doubled slash, or a version prefix like /v1/ you left out.
    • Query parameters not working → special characters need escaping. The URL encoder shows you what your parameters really look like once encoded.
    • Worked yesterday, 401 today → the token expired. Decode it and check the expiry claim.

    Habits that save time

    • Change one thing at a time. When you edit the URL, the headers, and the body together, a fix and a new bug cancel out and you learn nothing.
    • Get a GET working first. Prove your credentials work on a simple read before debugging a complex write.
    • Read the response body, not just the status. Most APIs explain the exact problem there, and most people never scroll down to it.
    • Never paste production tokens into tools that send them to a server. A live token is a working key to your account until it expires. Prefer tools that run in your browser.

    Frequently asked questions

    Can I test an API without installing Postman?

    Yes. A browser-based tool like the free online API tester sends the same requests with no install and no account. That makes it the practical option on a locked-down work laptop or a Chromebook where you cannot install desktop software.

    What is the difference between 401 and 403?

    A 401 means the server could not identify you: your credentials are missing, malformed, or expired. A 403 means it identified you successfully and you do not have permission for that action. Regenerating your API key will not fix a 403.

    Why do I get a CORS error when the API works in a browser tab?

    Opening a URL directly is not a cross-origin request, so CORS does not apply. Sending it from a page on a different domain is, and the browser will block you from reading the response unless the API sends an Access-Control-Allow-Origin header. The request itself usually succeeded.

    Should I use PUT or PATCH to update something?

    Use PATCH when you want to change specific fields and leave the rest alone. Use PUT when you are replacing the whole resource. Sending a partial PUT can blank out every field you omitted.

    Is it safe to test with a real API key?

    Only in tools that keep the key on your device rather than sending it to their own server, and ideally with a development or read-only key rather than a production one. Rotate any key you have pasted somewhere you are unsure about.

    Why does the server ignore the data I send?

    Almost always a missing Content-Type: application/json header. Without it many frameworks never parse the body, so the server behaves as though you sent nothing and complains about missing required fields.

    The short version

    Testing an API is just sending the four parts of a request by hand so you can see which one is wrong. Read the status code first, then the response body. Remember that 401 and 403 are different problems, that a missing Content-Type silently discards your data, and that a CORS error is the browser talking, not the API. Get a simple GET working before you debug anything complicated, and change one variable at a time.

    When something breaks, open the API tester, rebuild the request piece by piece, and let the response tell you where the problem is. It is usually a header, and it is usually spelled slightly wrong. You can find the rest of the developer tools in one place when you need them.

  • How to Convert a PDF to PowerPoint (Free, No Signup) — 2026 Guide

    How to Convert a PDF to PowerPoint (Free, No Signup) — 2026 Guide

    To convert a PDF to PowerPoint with ToolBrainy, select your PDF, click Convert to PowerPoint, and download the PPTX. Each page becomes an image on a slide: you can add annotations, but the original text is not editable.

    The short answer

    Use an image-based conversion when you want to present or annotate an existing document. Rebuild slides from extracted text when you need editable paragraphs, charts, accessible reading order or a new design. Conversion speed and appearance depend on the document, quality setting and device; inspect the downloaded deck before a meeting.

    Prepare your PDF

    Select only the pages your audience needs

    Use the PDF splitter to extract selected PDF pages before conversion. A short deck is easier to review and consumes less browser memory. Work from a copy so you retain the original.

    Check orientation, quality and file size

    Open the source and inspect small text, scanned pages and unusual orientations. If processing is slow, try fewer pages first. You can compress a PDF before conversion, but compression may reduce clarity; compare results rather than assuming it improves every file. Our guide to PDF compression and quality trade-offs explains what to review.

    Method 1: Use a free online PDF to PowerPoint converter

    Choose files and review their order

    1. Open the PDF to PowerPoint converter and select Choose PDF.
    2. Select one or more PDFs. Review the file list before converting; pages are processed in file-list order and then in their original page order.
    3. Choose the available output-quality setting. Higher image quality can produce a larger presentation.
    4. Click Convert to PowerPoint and keep the browser tab open until processing finishes.
    5. Download the PPTX and open it in your presentation software. Check page count, order and legibility.

    Understand the output

    A 12-page input produces 12 image-based slides. Multiple PDFs are combined into one deck. The first processed page sets the slide dimensions for the entire deck; subsequent pages are proportionally fitted and centred, so mixed page sizes can leave margins. The tool renders pages to JPEG images rather than preserving vector objects, live text or interactive PDF features. Selected files are processed in your browser without being uploaded to ToolBrainy’s servers.

    Method 2: Convert inside PowerPoint itself

    Rebuild editable slides from selectable text

    Open the PDF in a reader, select a short passage, copy it, and paste it into a text box in your slide template. Recreate headings and lists, check characters and line breaks, and rebuild important charts from their underlying data. This is manual reconstruction, not automatic conversion of PDF objects.

    Embedding a PDF is different

    Some desktop PowerPoint versions support Insert → Object → Create from file. This embeds or links a PDF object; it does not turn all its pages into editable slides. Availability and playback depend on the platform and installed software, so test on the presenting computer. PowerPoint itself may require a licence.

    Method 3: The Google Slides route

    1. Create the PPTX using the converter, then upload it to Google Drive and open it with Google Slides.
    2. Review the imported pages, add text boxes and speaker notes, and make any needed layout adjustments.
    3. To return to PowerPoint, choose File → Download → Microsoft PowerPoint (.pptx), then inspect the exported file.

    This route normally requires a Google account and uploads the presentation to Google’s service. The original page images remain images; opening them in Slides does not make their text editable. For sensitive documents, follow your organization’s rules for cloud storage.

    Which method should you pick?

    • Present the existing document: convert to image-based PPTX.
    • Edit the wording or create accessible slides: extract and proofread text, then rebuild in a slide template.
    • Collaborate in Google Slides: upload the PPTX if cloud storage is appropriate for the document.

    Can you edit the text after converting?

    This is the question that trips people up, so here is the straight answer for our converter: no, and it is a deliberate trade-off. Every PDF page is rendered as a high-resolution image and placed on its own slide. This usually retains the overall visual layout — but it also means the words are part of the picture. You cannot click into a paragraph and retype it.

    This is true regardless of how the PDF was made. A PDF exported straight out of Word behaves exactly the same as one scanned from paper; both end up as images on slides.

    What you can do is add your own text boxes, shapes, arrows and callouts on top of each slide. For plenty of real jobs — annotating a report, presenting from an existing document, walking a client through a proposal — that is all you actually need.

    If you genuinely need the original words as editable text, you have two options. If the PDF has selectable text, copy it straight out and paste it into your own slide template (Method 2). If it is a scan with no selectable text at all, convert the needed PDF pages to images, then use our free OCR tool to extract their words, then paste them in.

    Create editable slide content from scans

    Convert the required PDF pages to images

    The OCR tool accepts image files, not a PDF directly. First convert PDF pages to JPG, then choose the image containing the text you need.

    Extract and proofread the text

    Use Image to Text to extract text from an image. Choose the correct language and run extraction. Compare the result with the source, especially names, dates, numbers, punctuation and tables. OCR does not reliably reconstruct the original layout.

    Build a slide that can be read and edited

    Paste the checked text into slide text boxes. Use a descriptive title, short paragraphs and a logical reading order. Add useful alternative text to meaningful images. A screenshot containing text is not an accessible substitute for actual slide text.

    Check the finished presentation

    1. Compare input page count with output slide count and confirm file order.
    2. Inspect the first, last and most detailed pages at presentation size.
    3. Review mixed portrait and landscape pages for margins and clipped content after any manual resizing.
    4. Check that annotations, links and forms you need have been recreated: a page image does not retain their original interactivity.
    5. Open the deck on the presenting device before sharing. Keep the original PDF as a reference.

    Publishing a PDF or presentation on a website

    Local conversion does not publish your files. If you later upload a PDF to a public website and want it excluded from Google, read how to keep a published PDF out of Google with X-Robots-Tag. For confidential material, use access control rather than search-engine directives.

    Tips for the cleanest result

    • Compress bloated PDFs first. If the file is huge or slow to process, run it through a PDF compressor before converting.
    • Split long documents. Turning a 60-page report into slides rarely reads well — pull out only the pages you need.
    • Review font rendering before presenting. Because each page is an image, the rendered typefaces are baked in and cannot be substituted on another machine — one genuine advantage of the image approach.
    • Convert, then polish. Treat the converted deck as a starting point: add a title slide, drop in callouts, and cut the pages that do not earn their place.

    Common problems and fixes

    • The text will not edit → expected behaviour, not a bug: each page is placed as an image, so its text is part of the picture. Add your own text boxes on top, or use Method 2 to get editable wording.
    • Slides are the wrong size → the first PDF page determines the slide size for the entire deck. If you need a standard 16:9 deck, set it in PowerPoint’s Design › Slide Size after import and reposition as needed.
    • A page looks soft or pixelated → usually a very large page scaled down. Try converting that page on its own, or crop it in the PDF first.

    Frequently asked questions

    How do you convert a PDF to PowerPoint for free?

    Open a free browser-based converter such as ToolBrainy’s PDF to PowerPoint tool, choose your PDF, and download the .pptx file. Nothing is uploaded — the conversion happens inside your browser. There is no signup, no watermark, and it works on desktop or mobile.

    Can I convert a PDF to PowerPoint without installing software?

    Yes. Online converters and Google Slides both run entirely in your browser, so nothing needs to be installed. This is the easiest option on a work laptop or Chromebook where you cannot install apps.

    Will the converted slides be editable?

    You can edit the deck, but not the original words. Each PDF page is placed on its slide as an image, so the text is part of that picture — and that holds whether the PDF came from Word or from a scanner. You can freely add your own text boxes, shapes and notes on top. To get the original wording as live text, copy it out of the PDF and paste it into your own template, or run a scanned PDF through an OCR tool first.

    Does converting keep my original formatting?

    The converter aims to retain the visual layout by rendering pages as images. JPEG compression, source quality and mixed page dimensions can affect the result. Check small text and graphics after download; the original text is not separately editable.

    Is it safe to convert confidential PDFs online?

    The converter processes your selected files in your browser without uploading them to our servers. Follow your organization’s rules for handling confidential files. You can verify this yourself: open your browser’s Network tab before converting, and you will see the page’s own scripts and code libraries load, but never your document. Be aware that many other online converters do upload your file, so check before using one.

    How do I convert just a few pages instead of the whole PDF?

    Extract the pages you need first, then convert only those. This keeps the deck focused and avoids a slide for every single page of a long report.

    The one-minute version

    Select your PDFs, convert them to an image-based PPTX, then check the downloaded presentation. Rebuild from extracted text when the original wording needs to be editable. Keep the original PDF and test the finished file on the device you will use to present.

    Editorial note: Updated September 29, 2026 with AI assistance. Instructions were reviewed against the relevant tool implementation and documentation; examples are illustrative rather than claims of personal experience.