Prepositions after verbs

Encode in or encode by?

Encode is often followed by in when referring to a format, language, or system. Encode by is generally not idiomatic after the verb.

Quick answer

Which preposition fits with encode?

Use encode in to show the format, language, or system used for encoding. Encode by is usually not a standard verb-preposition combination. By may appear separately to describe a method.

The message was encoded in binary.
The file is encoded in UTF-8.
The data was encoded in a compact format.

Choose the pattern by meaning

These forms are not interchangeable. Choose the construction by meaning, not by which preposition appears most often.

1
encode in + format

Showing the code or format used

Use encode in with formats, languages, or systems.

The audio was encoded in MP3 format.
The instructions are encoded in machine language.
2
encode as + representation

Showing the resulting form

Use encode as to describe the representation produced.

The image was encoded as a text string.
Passwords are encoded as numerical values.
3
encode using + method

Describing the method

Using can introduce the process or tool employed for encoding.

The software encoded using a lossless algorithm.
The signal was encoded using a custom scheme.

See the difference in context

The same subject can take different constructions because each sentence answers a different question.

Construction
Example
Meaning
encode in
The data is encoded in hexadecimal.
shows the format or system used
encode by
The data was protected by encoding it first.
by introduces a method clause, not a fixed combination with encode
encode as
The character is encoded as a number.
shows the resulting representation
encode using
They encoded the file using AES.
shows the method or tool

Common mistakes

Some combinations appear in real text but do not mean what learners often assume.

Using encode by as a fixed pattern

Encode by is not normally used directly after encode.

✕ They encoded the message by binary. ✓ They encoded the message in binary.

Confusing in and as

In refers to the system or format. As refers to the resulting representation.

✕ The symbol was encoded in a number. ✓ The symbol was encoded as a number.

Leaving out the format

Encode often needs a clear format or method.

✕ The file was encoded. ✓ The file was encoded in UTF-8.

Quick practice

Choose the expression that matches the intended meaning.

1. The document was encoded ___ XML.
2. The image was encoded ___ a compressed string.
3. The software encoded the file ___ a custom algorithm.

Check your sentence in context

Paste the complete sentence below. Linguix checks the preposition together with grammar, spelling, punctuation, and style.

Free to try · No signup required

Frequently asked questions

Is encode in correct English?

Yes. It is common when naming a format, code, or language.

Can I say encode by?

Not usually as a fixed verb-preposition combination. Use in, as, or using instead depending on meaning.

What is the difference between encode in and encode as?

Encode in names the system or format. Encode as names the form produced.

Write with confidence in Linguix

Create a free account to check complete texts, apply suggestions, and save your documents.

Create a free account